Questions tagged [touchmove]

140 questions
0
votes
0 answers

How to addeventlistener to special selector?

H1 guys, i want to ask for help solve my problem. So what i have: After click i have Sliding PANEL from left to right i Want while click add event listener to this panel, and if user TOUCHMOVE i want to close panel. (if someone can help to catch the…
WhoIsDT
  • 695
  • 2
  • 9
  • 27
0
votes
0 answers

Allow scrolling in only one

Working on a web app, and I want to prevent the screen moving around, so I start with this: $(document).on("touchmove", false); ... then I realize I have a div that needs to be able to scroll, so I've added: $(document).on('touchmove',…
Alesh Houdek
  • 938
  • 2
  • 7
  • 20
0
votes
1 answer

Touchmove data is not transmitted constantly to Node.js

I have written a little program, in which you can load an image, select the color at the mouse / finger position on clicking, dragging or touchmoving. If I drag the mouse on the image (canvas), the color data is transmitted constantly to a node.js…
wurstbrotrest
  • 329
  • 1
  • 7
  • 17
0
votes
1 answer

AngularJS touchmove on multiple items

I have a list of items and when I move my finger over each then I want to get the id for example of each item. It works with a mouse but not with touch. I'm using this lib: https://github.com/nglar/ngTouch HTML:

item :…

Ahmed Karmous
  • 373
  • 2
  • 10
  • 25
0
votes
0 answers

Div not scrollable on mobile (document.ontouchmove)

I have a simple Website with an ontouchmove-handler on the whole document-object. On this website there a couple of div-elements with a scrollbar (overflow: auto; height: 200px). Theses div-elements are not scrollable on mobile devices. If i…
Calimero
  • 1,054
  • 1
  • 7
  • 17
0
votes
0 answers

How to detect scroll on iOS with JavaScript?

I normally simulate elements on a scroll event with something like this: $(window).on(is_touch_device ? 'touchmove' : 'scroll', function(event) { //do stuff }); The problem is on iOS where touchmove only gets triggered when my finger is…
Xaver
  • 11,144
  • 13
  • 56
  • 91
0
votes
0 answers

jQuery Mobile with touchmove event

I'm trying to manage a Basic select switch like in the following documentation: http://demos.jquerymobile.com/1.4.5/flipswitch/ My code is: HTML
0
votes
2 answers

jQuery touchmove not registering in chrome emulator

There's been similar questions on how to fire scroll events (mid-scroll) on mobile/tablet. I've used the code provided below but I've yet to get this to work in chrome emulator. $('body').on({ 'touchmove': function(e) { …
user3521314
  • 464
  • 6
  • 14
0
votes
0 answers

How to move an image in relative layout on finger touch? in android

I want to move an image on finger touch. Im using relative layout for this. What will i do in ACTION_UP and ACTION_DOWN ? im using following code i want to move visacard in relative layout on finger touch. visacard.setOnTouchListener(new…
0
votes
1 answer

Undefined error when trying to identify descendant of parent using hasAttribute

I'm trying to determine if an element is a descendant of another elect that has a specific attribute. So far, I have no issue when the value is true, but I get TypeError: undefined is not a function (evaluating 'node.hasAttribute(attribute)') when…
CJT3
  • 2,788
  • 7
  • 30
  • 45
0
votes
0 answers

ontouchmove just fires once and for the first element (doesn't trigger other element's ontouchmove events)

I am using Android to adapting one of my old JavaScript games, and I am wondering why the "touchmove" just fires for the first element I press with my finger. After pressing that element, I move the finger (without releasing it), and when I enter to…
jalbam
  • 356
  • 1
  • 3
  • 12
0
votes
1 answer

Dragging a sprite with TouchMoved

I'm using Xcode with Cocos2d version 3.0. I want to drag sprites around the screen. I've done so successfully using the following code: (void) touchMoved:(UITouch *)touch withEvent:(UIEvent *)event { CGPoint touchLocation = [touch…
0
votes
1 answer

How to make this scrollTop function mobile-friendly

I have made a function wich runs on the computer very well. But on mobiles the position refreshes only when the scrolling stops. Its a known problem and i found answers but I didnt get it in my function working. Maybe one of you can help me. my…
kruben
  • 142
  • 2
  • 14
0
votes
0 answers

Touchmove event fired only once when child is removed

When registering a touchmove event on a parent, I only receive the first touchmove event, if the callback removes the child. I would like to keep receiving touchmove events on the parent, although the children inside, are removed or added. I have…
kraenhansen
  • 1,535
  • 2
  • 15
  • 26
0
votes
1 answer

Why kineticJS cannot move workings with touch or mouse?

I need to move this "box" group while touching or mousemoving inside the white-part of the screen.