You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If used on a mobile device the touch events are not handled correctly if the slider is used vertically. Instead of moving the slider, the whole page gets scrolled.
The issues seems to be located in line 169 of ReactCompareImage.tsx:
// Prevent default behavior other than mobile scrolling if (!('touches' in e)) { e.preventDefault(); }
Removing the if clause and preventing the default event handling, fixes the issue.
The text was updated successfully, but these errors were encountered:
If used on a mobile device the touch events are not handled correctly if the slider is used vertically. Instead of moving the slider, the whole page gets scrolled.
The issues seems to be located in line 169 of
ReactCompareImage.tsx
:// Prevent default behavior other than mobile scrolling if (!('touches' in e)) { e.preventDefault(); }
Removing the
if
clause and preventing the default event handling, fixes the issue.The text was updated successfully, but these errors were encountered: