Collection navigation triggering swiperight event on mouse click

Bug #1749308 reported by Ghada El-Zoghbi on 2018-02-13
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Medium
Unassigned

Bug Description

Mahara: 17.10.3
OS: Linux 16.04
DB: Postgres (not relevant)
Browser: Firefox and Chrome

In a collection on a view with the 'Previous page' displayed, the swiperight event is getting triggered on a mouse click.

When a user tries to select some text (i.e. click mouse, hold it down, and select text), this action is interpreted as a swipe action. And, the swiperight event is triggered.

I've come across this stackoverflow discussion:

https://stackoverflow.com/questions/36317660/jquery-mobile-swipe-gesture-for-touch-screen-only-and-not-for-mouse

Bascially, the swiperight and swipeleft events should be disabled on the mousedown event and enabled on the touchstart event.

Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
Robert Lyon (robertl-9) on 2018-03-08
Changed in mahara:
milestone: none → 18.10.0
Changed in mahara:
milestone: 18.10.0 → 19.04.0
Changed in mahara:
milestone: 19.04.0 → none

Once this is fixed, we might be able to remove device detection in bug #1539322

Work-around for still selecting text:
- double-click for a word
- triple-click for a paragraph

Hat tip to Eric Breton at https://mahara.org/interaction/forum/topic.php?id=8413&post=33591

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers