Home jquery JQuery Touch Events

JQuery Touch Events

Author

Date

Category

How to manage Touch Events . When I write a few TouchStart to different items, it is triggered immediately and can not divide them. Tell me how to manage them without third-party libraries.

$ (". Content"). ON ("TouchStart", Function () {
  $ (this) .stop (). Animate ({TOP: '-50PX'}, 600);
});

If you can register in another TouchStart on a completely different element they will work simultaneously.

tried to find in Google, but did not find it. Perhaps not looking there.

I will be grateful for the prompt or the small tutorial can where there is


Answer 1, Authority 100%

is not reproduced. Search where you are incorrectly affixed selectors or event pops up into another item.

sandbox

$ (". Content"). ON ("TouchStart", Function () {
  Alert ('Content');
});
$ (". Content2"). ON ("TouchStart", Function () {
  Alert ('Content2');
});

works correctly, when you press on a specific item, only one Alert .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions