yash-goli / jquery-nicescroll

Automatically exported from code.google.com/p/jquery-nicescroll
0 stars 0 forks source link

"prevent ios "ghost" events by clickable elements" guard fails on non-ios webkit devices #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include nicescroll
2. Run on webkit-based non ios-device (such as Cisco Interactive Experience 
client kiosk device) with a touch screen
3. Attempt to drag to scroll with a mouse

What is the expected output? What do you see instead?
I expect the nicescroll-enabled div to scroll its contents. Instead, the 
container only responds to mousewheel scroll (correctly), but refuses to honor 
mouse drag events.

What version of the product are you using? On what operating system?
3.5.4/Cisco IEC (custom webkit-based browser) on Linux

The problematic code is in self.ontouchmove, at line 1093 in 3.50beta5:

if (self.rail.drag&&(self.rail.drag.pt==2)) {
    if (cap.cantouch&&(typeof e.original == "undefined")) return true;  // prevent ios "ghost" events by clickable elements

Devices such as the IEC match this, and this completely disables scrolling on 
these.

Original issue reported on code.google.com by horslimi...@gmail.com on 22 Apr 2014 at 7:04