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 529f59b8e7f3860f0bbad54c9a0ac687a3819056
Author: Daniel Gruno <[email protected]>
AuthorDate: Thu Nov 18 00:15:55 2021 +0100

    use new swipe detector class
---
 webui/list.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/webui/list.html b/webui/list.html
index a13dc5f..4053bcd 100644
--- a/webui/list.html
+++ b/webui/list.html
@@ -179,9 +179,9 @@ the License. -->
     <div id="splash" class="splash fade-in"> &nbsp; </div>
     <div style="clear: both;"></div>
     <script type="text/javascript">
-      attachSwipe(document.getElementById("emails"));
-      document.addEventListener("swipeleft", ponymail_swipe);
-      document.addEventListener("swiperight", ponymail_swipe);
+      let swipeDetect = new SwipeDetector(document.getElementById("emails"));
+      swipeDetect.setCallback('left', ponymail_swipe);
+      swipeDetect.setCallback('right', ponymail_swipe);
     </script>
   </body>
 </html>

Reply via email to