mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

Unable to zoom in/out on mobile devices #9

Closed ekzobrain closed 11 years ago

ekzobrain commented 11 years ago

Scrollbar plugin captures all multi-touch events and tries to handle them as scroll events, but not all of them are actually scroll events, zoom in/out is just a popular example. Why do you capture multi-touch events when real scroll multi-touch events actually produce mousewheel events, which are already captured?

ekzobrain commented 11 years ago

Oh, I think I understand - touch events are captured to support one-finger scrolls on mobile devices? If so - you should check that event.touches.length equals to 1, not >0, otherwise all multi-touch events will also be considered as scroll events.