mx:Text mousewheel problem

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default mx:Text mousewheel problem

    Hi,

    I have this is my flex AIR application:
    <mx:VBox width="100%" height="100%">
    <mx:VBox width="100%" height="100%" verticalGap="0" id="hbox1">
    <mx:Text htmlText="{mydata.txt}" width="100%" id="title"
    styleName="titleText" paddingBottom="0" paddingLeft="0"
    paddingRight="0" paddingTop="0" />
    </mx:VBox>
    </mx:VBox>
    When I roll the mouse wheel while I am hovering over them, not only
    the content inside the parent parent container scrolls, but the text
    inside the mx:Text also scrolls. The mousewheel event in the text is
    not cancelable. How do I stop the text from scrolling?

    Thanks
    Sandosh
    sandosh.vasudevan@gmail.com Guest

  2. Similar Questions and Discussions

    1. IDCS: mousewheel stops scrolling
      My mousewheel stops scrolling up and down shortly after I start using a document in ID CS. The only fix is very temporary: close the document and...
    2. Does MouseWheel Event work?
      does anyone have examples to work in Firefox 2.0 with flash 9.0.x?
    3. Logitech Mousewheel on kubuntu
      For the benefit of the archives: When I bought my logitech mouse for kubuntu, the wheel originally didn't work. I tried following the...
    4. How to disable the mouseWheel on a ScrollPane???
      I have this problem: I load into a scrollpane an external swf, and if the scrollpane has the vpolicy ON and the swf isnt bigger than the scrollpane...
    5. Scroll with mousewheel on a listbox component
      Does anyone know how I can use the scroll wheel on my mouse to scroll down through a Flash listbox component? (on a flash page embeded in a HTML...
  3. #2

    Default Re: mx:Text mousewheel problem

    Hi,

    I was also bothered by this issue for a while. I managed to find a solution and created an extension to the Text component that prevents this mouse wheel scrolling. You will find the code and a brief explanation on what it does here:

    http://flexceptional.blogspot.com/2011/03/flex-disable-mouse-wheel-scrolling-for.html

    Hope this helps!

    Thanks,
    Lars
    Lars Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139