Questions tagged [touchmove]

140 questions
1
vote
1 answer

Disable Scroll under bootstrap modal overlay

I have scrollable content under the bootstrap modal. When i touchmove on the popup overlay, I can still scroll the content under the modal. Can it be disabled somehow? Tested on iPad mini.
Tukkan
  • 1,574
  • 2
  • 18
  • 33
1
vote
1 answer

iScroll 5 container boundaries detection scrolling with mousewheel and touch

I'm using iScroll 5 with fullpage.js because the solution provided by fullpage.js is not what I need. My page has 3 full page sections. The 2nd section has a vertical scrollable content. What I need to do is to detect when my scrollable content is…
Strobel
  • 167
  • 1
  • 9
1
vote
0 answers

Cordova/Phonegap: JavaScript wait screen causes onScrollChanged event

I have a "wait screen" that is shown during javascript computations (these take 5-10s) in Cordova/PhoneGap 3.3. The wait screen is a DIV over whole screen that dims the view. My problem is when user swipes the wait screen, the whole application…
Kozuch
  • 2,272
  • 3
  • 26
  • 38
1
vote
1 answer

Rotate imageView as per touch

I am rotating imageView which is minuit hand of a clock, with -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; if ([touch view] == _imgViewMinuit) { NSLog(@"Touched"); …
sourabhkumbhar
  • 259
  • 4
  • 11
1
vote
1 answer

why touchmove only available to document

Hi I using touchmove event, this code is not worked for me, $(".tempClass").on("touchmove",function(){ alert("touchmove on div"); }); this code is worked for me, $(document).on("touchmove",function(){ alert("touchmove on document"); }); my…
Milan V.
  • 697
  • 1
  • 6
  • 22
1
vote
2 answers

Touch move Android not smooth

I used this code: In onCreate: imageView.setOnTouchListener((OnTouchListener) this); And onTouch: case MotionEvent.ACTION_MOVE: canvas.drawLine(oldX, oldY, event.getX(), event.getY(), paint); …
1
vote
1 answer

Access touch history when `touchmove` event is captured

I am trying to learn how to use the touchmove event in browser to detect multitouch gestures. When a touchmove event is captured I can obtain a list of current touch points. However that is not very useful for detecting gestures. I like to get the…
Aras
  • 5,878
  • 9
  • 49
  • 76
1
vote
1 answer

controlling iPhone zoom programmatically with javascript

I would like to follow my finger movement on an iPhone screen. However this results in rubber banding and scrolling and therefore I have to turn off the default behaviours. As explained on this…
wubbewubbewubbe
  • 711
  • 1
  • 9
  • 20
1
vote
2 answers

"touchmove" event on Android &iPhone using PhoneGap

so basically I want to be able to get the coordinates of the touch when someone swipes across the screen of a touch-enable device powered by iOS or Android. What I've tried to do so far is as follows. $('element').bind("touchmove", function(e) { …
Petar Vasilev
  • 4,281
  • 5
  • 40
  • 74
1
vote
2 answers

jQuery: disable and enable touch with touchmove

I use this code to disable and enable touch: jQuery(document).ready(function(){ jQuery("body").on("touchmove", false); jQuery('button').click(function(){ jQuery("body").on("touchmove", true); }); }); function work fine for disabling…
Morteza
  • 2,143
  • 7
  • 37
  • 61
1
vote
1 answer

Prevent touchmove event conflict with scroll of jquery UI dialog

Since on mobile device browser such as safari , when user drag the screen, the whole website will move along with the finger. So the common solution is : addEventListener('touchmove', function(e) { e.preventDefault(); }, true); This will prevent…
user782104
  • 13,233
  • 55
  • 172
  • 312
1
vote
1 answer

How to prevent touchmove event move the background using jquery /javascript?

Currently I am developing a website for ipad Safari I used addEventListener('touchmove', function(e) { e.preventDefault(); }, true); to prevent the background moving when dragging the content. The problem is when I allow some element to drag …
user782104
  • 13,233
  • 55
  • 172
  • 312
1
vote
1 answer

jquery touchmove chrome mobile

How can i get the id of the elements under my finger during touchmove? What i want to achieve is: bind touch[start|end|move] on touchstart start selection during touchmove collect all dom elements "touched" under my finger example code var…
Deneb
  • 13
  • 1
  • 5
1
vote
2 answers

Is there a way in jQuery or Javascript to determine the speed of a touchmove event?

this is a simple question. Is there a way in jQuery or Javascript to determine the speed of a touchmove event? I use css to grab the element and make it grabable, this works fine but if I move the finger faster, it's less likely I can move to a…
fishjoe
  • 39
  • 1
  • 5
0
votes
0 answers

touchmove coordinates delay when scrolling

The coordinates seem to read fine on a desktop/laptop browser. However on mobile, I'm getting a delay while scrolling/swiping down and up. The coordinates seem to be jumpy and not updating immediately. If you try on desktop and mobile you'll see…
unclepete
  • 77
  • 8