Preventing swipe in JavaScript [FIXED] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 13

Preventing swipe in JavaScript [FIXED]

I have put my heart and soul into a project last week's, and even though I'm quite stubborn in requesting for help, I would like to ask if there is a possibility to prevent swiping from the output tab back to the JavaScript tab. this really ruins the feel for the joystick I made because now you have to swipe down first and just tapping the tabs is enough to manoeuvre the tabs right? thanks for your attention my code: https://code.sololearn.com/WcplRQ5Vli0a/?ref=app

23rd Jan 2018, 8:22 PM
wout werkman
wout werkman - avatar
6 Answers
+ 13
@wout werkman You're right. Swiping between tabs is really a problem for those who code on their phone. I personally don't swipe tabs , just tap to change tabs. I mailed them about its removal since it's become more trouble shooting for tiny devices. Unfortunately didn't get any response yet. You're welcome. You have some seriously cool codes in your den. And also congrats for COTD.
24th Jan 2018, 10:00 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 9
Try to move your finger left to right diagonally. It just works fine.
24th Jan 2018, 9:48 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 9
I'll do my part and send a mail too, it's nice to hear that I'm not alone in this fight against tabswiping ^^, thanks allot for the support, people like you make the sololearn community as awesome as it is
24th Jan 2018, 10:16 AM
wout werkman
wout werkman - avatar
+ 7
@Ranjan, yeah the joystick does work indeed if you start swiping up or down first, but when you are in the middle of the game, you forget to do this, and you swipe back to JavaScript tab, you lose progress which could ruin the fun for those that play the game thanks for reaction though, it's much appreciated ;)
24th Jan 2018, 9:52 AM
wout werkman
wout werkman - avatar
+ 6
good news!!! update to the latest version swipe left has been disabled on it i also been waiting for this for some time now
23rd Feb 2018, 7:58 PM
Burey
Burey - avatar
+ 2
Yeah, this is a problem I can see in this game. Have you tried contacting SoloLearn team directly?
24th Jan 2018, 10:00 AM
BlazingMagpie
BlazingMagpie - avatar