Page 1 of 1

Swipe gestures: next & previous article

Posted: Wed Oct 16, 2019 8:35 pm
by tychapogoy
Dear users,

Using the protostar template, I wish to implement a swipe left & right gesture detection on a touchscreen to display the next and previous article. The gestures should be only detected in the area of the article. Effectively, add the same action as pressing the next and previous buttons. How can I achieve this, please?

Re: Swipe gestures: next & previous article

Posted: Thu Oct 17, 2019 1:18 pm
by john-doe
tychapogoy wrote:
Wed Oct 16, 2019 8:35 pm
Dear users,

Using the protostar template, I wish to implement a swipe left & right gesture detection on a touchscreen to display the next and previous article. The gestures should be only detected in the area of the article. Effectively, add the same action as pressing the next and previous buttons. How can I achieve this, please?
Not sure if an extension would do such capability. What it would work might be adding a JS additional script and load it on the template, BUT if you go that way YOU HAVE to duplicate your protostar template since if you update joomla, the template gets overwritten and you might lose those changes.