jquery - tinyscrollbar scroll not working in chrome in windows 8.0 -
i have machine chrome installed on windows 8.0 laptop (which has touchscreen) have implemented tinyscrollbar in web application. tinyscrollbar shows , scrolls when application opened in mozilla. in chrome having issues , scrollbar displays scroll functionality not working found "ontouchstart" in windows property returns true value. has got scroll not working ?
i had same problem on windows 8 machine running on chrome.
there problem if(hastouchevents)
statement. enter if(hastouchevents)
on chrome , never initialize binding of thumb
, mouseevents
. if want attach mouse events , drag track must comment out else statement in v2.1.8 of plugin to:
else { $thumb.bind("mousedown", start); $track.bind("mousedown", drag); }
to:
$thumb.bind("mousedown", start); $track.bind("mousedown", drag);
and:
else { $(document).bind("mousemove", drag); $(document).bind("mouseup", end); $thumb.bind("mouseup", end); touched = true; }
to:
$(document).bind("mousemove", drag); $(document).bind("mouseup", end); $thumb.bind("mouseup", end); touched = true;
hope sufficient.
Comments
Post a Comment