Learn JavaScript Touch Events In 17 Minutes

Learn JavaScript Touch Events In 17 Minutes

Web Dev Simplified

2 года назад

105,812 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

mr.jitruxa
mr.jitruxa - 02.10.2023 20:38

thank you for this video, it helped me a lot!

Ответить
SAlEX Korsan
SAlEX Korsan - 25.08.2023 10:24

Brother please send me a code in js

Tap on screen to execute function only once

Ответить
Weizengass
Weizengass - 17.08.2023 19:11

I lost it when I heard "we need two in the back"

Ответить
The Chosen
The Chosen - 03.08.2023 23:12

Good job bro, JESUS IS COMING BACK VERY SOON; WATCH AND PREPARE

Ответить
politubeyou
politubeyou - 04.07.2023 12:29

Great explaination in such a short time. Thank you!

Ответить
mnnw
mnnw - 09.06.2023 14:56

great video

Ответить
Oscar Serna
Oscar Serna - 06.05.2023 09:40

Thanks!

Ответить
MrRufus302
MrRufus302 - 20.04.2023 13:45

Trying to implement Touch Events in a Canvas from a Class; struggled to substitute Mouse Events, but I think I shall be able to do it now, with this information. WDS: thank you very much.

Ответить
Janssenhidal
Janssenhidal - 05.04.2023 12:34

I'm creating a modal which on swipe down it closes. The issue is that with e.preventDefault() I can't focus on the <input> element inside the modal because it prevents the click. Is there a work around this please?

Ответить
Jefreey Mercado
Jefreey Mercado - 08.03.2023 07:39

If someone has trouble connecting the android phone to the pc write me. I have the solution

Ответить
Dipenparmar12
Dipenparmar12 - 11.02.2023 11:33

Amazing tutorial

Ответить
Andy_Rocket
Andy_Rocket - 05.02.2023 01:41

Great job kyle👏👏👏

Ответить
Shahab Dev
Shahab Dev - 02.02.2023 13:08

super cool man. super cool. gracias

Ответить
Ciro Peixoto
Ciro Peixoto - 15.01.2023 19:38

FERA!!! 🦁

Ответить
Billy Bobertjoe
Billy Bobertjoe - 09.01.2023 00:57

Hah nerd

Ответить
Pit Pat
Pit Pat - 23.12.2022 02:13

Chrome?? DANGIT

Ответить
Yiwei Wu
Yiwei Wu - 22.11.2022 15:33

Really helpful! Is there a way to do that using React, the React resources about the ontouch events are limited, and I really need the function of adding points on the image?

Ответить
Frans Joakim Titulaer
Frans Joakim Titulaer - 14.11.2022 21:57

Amazing

Ответить
Alessandro Formica
Alessandro Formica - 01.11.2022 12:56

Another cool video from Kyle. Thank you, Mister!

Ответить
karshten
karshten - 26.10.2022 13:11

Hi! How make drag and drop on mobile diveces, I've done ordinary dnd on desktop, but on mobile devices it wasnt working

Ответить
Siva Karthikeyan
Siva Karthikeyan - 30.09.2022 00:47

Thankyou man, you made me happy. 🙂

Ответить
codeworld
codeworld - 09.09.2022 00:09

Is changedTouches an object?.... Am confused there

Ответить
mohamed youssef
mohamed youssef - 07.09.2022 16:14

Awesome video ++++++++++++++++++ 😃

Ответить
Sam Fishback
Sam Fishback - 06.09.2022 01:54

Thank god for you. A clear, concise crash course on touch events. I have been scouring the internet only to find documentations and outdated stackoverflows. This was exactly what I needed.

Ответить
Afrographix Studio
Afrographix Studio - 06.09.2022 00:20

Starting wih semi colon, weird

Ответить
Dclxvi Clan
Dclxvi Clan - 04.09.2022 14:46

Awesome bro, thanks for that lesson, u help me, this good lesson👍

Ответить
mohammad ashrafi
mohammad ashrafi - 03.09.2022 12:18

Great👍

Ответить
Matteo Porrani
Matteo Porrani - 16.07.2022 13:56

Great video, simple and clear, thanks a lot!

Ответить
stefan cho
stefan cho - 15.07.2022 17:02

Could you make a video about pinch zoom to magnify images?

Ответить
Robin Watts
Robin Watts - 08.07.2022 19:15

You're the man

Ответить
Pierre-Louis Drevon
Pierre-Louis Drevon - 06.06.2022 17:54

Compleate and dense

Ответить
Santiago Rangel
Santiago Rangel - 30.05.2022 07:21

Great Video!!

Ответить
Kabkee Moon
Kabkee Moon - 30.05.2022 04:59

Hi Kyle, I've found that a semicolon had been automatically added on the first place of a line. It seems like an auto formatting was working.
I googled up for the reason for using a starting semicolon but I'm not clear what benefit would it be. Would you please let me know why you are using a starting semicolon, what benefit, or why it could be a good habit while coding?

Ответить
ken kinyua
ken kinyua - 19.05.2022 21:22

this is really my favorite channel . Thanks

Ответить
321B Productions (I am still alive)
321B Productions (I am still alive) - 11.05.2022 16:11

Five server which is a different extension automatically gives you the router address

Ответить
Daniel
Daniel - 10.05.2022 07:30

Wow, touch events are quite interesting, and fairly simple to work with really :) Great video

Ответить
El Teodoro
El Teodoro - 03.05.2022 00:20

Can we do this too with iPhone?

I don't use an iPhone myself, but I need to debug on it for clients...

Ответить
Sueling Susu
Sueling Susu - 01.05.2022 09:47

👏👏👏👏🙏🙏🙏🙏🙏👌👌👌👌👌🖖🖖🖖🖖🖖🖖🖖

Ответить
David Robot
David Robot - 24.04.2022 02:02

Great tutorial. Thanks.

Ответить
Paweł Jakubowski
Paweł Jakubowski - 22.04.2022 13:20

Hello Kyle,
Thanks for great content.
I don;t know why I can't run site on my mobile device. I'm on the same internet connection, the same IP adress. Did you come across that kind of situation?

Ответить
Diego Sabbagh
Diego Sabbagh - 19.04.2022 19:59

Thansk for the video. Noob question: what is that semicolon ";" you put in front of the arrys?

Ответить
Heimo Schneeberger
Heimo Schneeberger - 19.04.2022 11:43

about:inspect will redirect to the same page

Ответить
Dustin Scroggins
Dustin Scroggins - 19.04.2022 11:21

Perfect video bro

Ответить
QwDragon
QwDragon - 13.04.2022 22:12

Very cool! Thanks!

Ответить
aytin horasan
aytin horasan - 13.04.2022 16:02

Thanks Kyle. I would use these tricks in my mobile apps developed with React Native(which is basically JScript😊) Maybe they documented already in Touchables.

Ответить
Кондратьев Евгений
Кондратьев Евгений - 13.04.2022 13:21

Thanks a lot Kyle. extremely useful and interesting topic and video.👍

Ответить
CirTap
CirTap - 12.04.2022 17:02

192.168.*.* is typical Windows LAN IP.
Macs and Linux typically use 10.*.*.*

Ответить
CirTap
CirTap - 12.04.2022 16:59

You can also do remote USB debugging in desktop Firefox and connect its DevTool to your Android Firefox instance. Both need to be the same version iirc.
On desktop goto about:debugging to enable the feature.

Ответить
Tiger Smith
Tiger Smith - 12.04.2022 16:59

W wat a great guide W you not only gave great real world use case scenarios but you also show a fast and simple way to debug any and all examples. There has been times where I followed a guide and ran into a bug that wasn't explain in the demonstration and couldn't figure out how to properly debug it. Ppl would pay crazy amounts of money to get half of this effort and quality at a college. One more W for good measure. P.S. I don't even web dev but love it when I see a good and clear guide.

Ответить
CirTap
CirTap - 12.04.2022 16:55

What about Laptops and Pen / Graphics Tablets? and how do PointerEvents fit into the picture?
Tablets are connected to PC-ish devices (Laptops) and many come with support for pinch and zoom => multi touch points.
Aren't PointerEvents supposed to be the clicky-touchy "meta" event that cover both touch and click?


As a (Wacom) pen tablet user that also uses the pen/stylus as a mouse replacement, I always run into issues on web pages that use drag events like maps (Google, Apple).
Several panels in Firefox DevTools also do not respond properly when I try to resize them using the pen.
It's only web stuff that has this issue. Desktop apps respond perfectly fine to the pen-as-mouse use case.

Ответить