Home › Forums › JavaScript › Horizontal drag scrolling › Reply To: Horizontal drag scrolling
August 13, 2015 at 5:54 pm
#206522
Participant
Okay, this was breaking the script on Android :
if (requestAnimationFrame) var neoteric = true;
So that’s now changed into :
if (window.requestAnimationFrame) var neoteric = true;
But my phone doesn’t support the feature so I’m not sure it’s the same cause as the issue you mentioned (good to know at least, I’ll need to update a few scripts). Might depend on the OS of the iPad :
http://caniuse.com/requestanimationframe
Or maybe Apple takes a stricter approach to checking for support. Hope that solved it in any case.
Adding a blur event to cancel dragging didn’t work on Chrome or Opera so made that a mouseleave. No need for a link to the test page, I think. Here’s another pen :
Let me know if that fixed most of it…