This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit a756e330aa310dacdda149035604e63eac2b0ca9 Author: Daniel Gruno <[email protected]> AuthorDate: Wed Nov 17 20:14:26 2021 +0100 adjust to work with new swipe.js --- webui/js/source/key-commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webui/js/source/key-commands.js b/webui/js/source/key-commands.js index 704a8c9..7ea61d6 100644 --- a/webui/js/source/key-commands.js +++ b/webui/js/source/key-commands.js @@ -196,8 +196,8 @@ function keyCommands(e) { // swipe left/right for next/previous page on mobile function ponymail_swipe(event) { // Only accept "big" swipes - let len = Math.abs(event.swipestart.coords[0] - event.swipestop.coords[0]); - let direction = event.swipestart.coords[0] > event.swipestop.coords[0] ? 'left' : 'right'; + let len = Math.abs(event.detail.swipestart.coords[0] - event.detail.swipestop.coords[0]); + let direction = event.detail.swipestart.coords[0] > event.detail.swipestop.coords[0] ? 'left' : 'right'; console.log("swipe %s of %u pixels detected".format(direction, len)); if (len < 20) return false; if (direction == 'right') { @@ -221,4 +221,4 @@ function ponymail_swipe(event) { } } return false; -} \ No newline at end of file +}
