I have some Jquery scroller.
For desktop browsers I use this construction:
holder.bind('mousedown.rotate', function(e){
//some actions
doc.bind('mousemove.dragrotate', function(e){
//some actions
});
doc.bind('mouseup.dragrotate', function(){
//some actions
doc.unbind('.dragrotate');
});
});
for mobile browsers it works in this way:
holder.bind('touchmove', function(jQueryEvent) {
//some actions
});
what is the best way to determine mobile borwsers? is there a way to use same function for all platforms?
thx