← Back to team overview

mahara-contributors team mailing list archive

[Bug 1749308] Re: Collection navigation triggering swiperight event on mouse click

 

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

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1749308

Title:
  Collection navigation triggering swiperight event on mouse click

Status in Mahara:
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1749308/+subscriptions


References