aboutsummaryrefslogtreecommitdiff
path: root/ui/static/js/touch_handler.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-10Move internal packages to an internal folderGravatar Frédéric Guillot 1-187/+0
For reference: https://go.dev/doc/go1.4#internalpackages
2023-03-28Add swipe as option for gesture navigation between entries.Gravatar dzaikos 1-39/+88
* Refactor `TouchHandler` to handle double-tap and swipe gestures. * Renamed existing `onTouch` JavaScript methods to `onItemTouch` and added `onContentTouch` methods for swipe gesture. * Refactor double-tap. It's now a method in `TouchHandler` versus anonymous functions in `listen()` method. * Updated CSS classes. * Added `touch-action` CSS for `.entry-content`. * Renamed CSS classes for adding events in `TouchHandler`. * Updated users settings to replace checkbox for double tap with select for none, double tap, or swipe. * Added database migrations for new gesture_nav option. * Rename `users.double_tap` to `users.gesture_nav` and migrate existing user settings. * Updated translation files. (Non-English updated with Google Translate.) Resolves #1449, closes #1495
2023-01-14Add option to enable or disable double tapGravatar Frédéric Guillot 1-3/+3
2022-12-06Disable double-tap mobile gesture if swipe gesture is disabledGravatar nyanpasu64 1-1/+1
Fixes #441.
2022-04-13Make swipe gestures feel more natural.Gravatar dzaikos 1-8/+13
Removes opacity transition when swiping an article read/unread. Adds "resistance" to the swiped entry when the 75px threshold is reached. Fixes an issue in which a swiped article couldn't be moved <15px.
2022-01-27Fix regression: reset touch-item if not in /unreadGravatar Jacob Duba 1-2/+5
2022-01-15Do not reset touch-item if successfully swipedGravatar Jacob Duba 1-4/+4
2019-07-17Refactoring of Javascript codeGravatar Frédéric Guillot 1-14/+15
2019-03-11Add double tap detection for next/previous page navigationGravatar 3ddysan 1-1/+33
2018-07-17Prevent vertical scrolling on swipeGravatar Dave Z 1-1/+3
2018-07-10Use passive event listeners for touch eventsGravatar Frédéric Guillot 1-4/+5
Avoid this warning in Chrome console: https://www.chromestatus.com/feature/5745543795965952
2018-07-05Refactor assets bundler and split Javascript filesGravatar Frédéric Guillot 1-0/+94