Results 1 to 3 of 3

Thread: Mouse sticks on image/screen while sliding/dragging

  1. #1
    Sencha User
    Join Date
    Jul 2009
    Posts
    16

    Question Mouse sticks on image/screen while sliding/dragging

    The problem I have also exist on all the examples. (like http://touchstyle.mobi/app/).

    What is the problem? When you click and hold the mouse-button (or finger on touch screen that simulates a mouse) on an image and try to slide and release the mouse-button, the slide (whole screen) sticks on the mouse. While if you click on a space next to the image and try to slide the page, then the slide works as aspected. What is here the problem? And does anyone knows how to resolve this issue? The version I use is Sencha Touch 1.1.0 but the problem was always there, also for older versions. I use always latest version of Google Chrome.

  2. #2
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589

    Default

    I think its more like Desktop browser property and this will not be a problem in touch devices .

    Have a look into this post

    http://www.sencha.com/forum/showthre...151#post594151

  3. #3

    Default

    This is the default behaviour of many (all?) browsers
    You have to listen to mousedown event on the img element and preventDefault

    you can use this on <img> element :
    Code:
    onmousedown="arguments[0].preventDefault()"

Similar Threads

  1. Mouse Dragging / Coordinates
    By gammagec in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 21 Nov 2010, 5:06 PM
  2. Flash movie in ext.panel sticks to mouse on mouse click
    By storycreator in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 19 Aug 2009, 6:45 AM
  3. Possible bug in Ext -- allows dragging window off screen
    By darind in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 25 Feb 2009, 11:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •