What function do you use to detect swipes on phone in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What function do you use to detect swipes on phone in Java?

What function do you use to detect swipes on phone in Java? I want to make this compatible for 📲 (Phone, tablet ) etc. This Is The code I got from GitHub . https://code.sololearn.com/WXsitJyc5DhV/?ref=app

4th Sep 2020, 3:02 AM
Mystic
Mystic - avatar
1 Answer
0
Wrap the whole JavaScript with: document.addEventListener("DOMContentLoaded", function(event) { //do work });
10th Sep 2020, 1:22 PM
Heng Jun Xi
Heng Jun Xi - avatar