In my application I have a applicationControlBar at the top of the screen and a space to load different modules below. In a module that needs a faster scroll speed, I add an event listener in the init handler...
private function onInit():void { addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelEvent); } Then the code posted previously is called whenever a MouseEvent.MOUSE_WHEEL event occurs. This works great and my users love it. Flex generally has a delta of +5 and -5 depending on direction of the mousewheel. The code either adds or subtracts fifty depending on the direction so the delta will now be either -55 or +55 which is a much larger jump than 5. HTH. Steve --- In flexcoders@yahoogroups.com, dorkie dork from dorktown <dorkiedorkfromdorkt...@...> wrote: > > where are you adding this? can you supply more details? > > On Mon, May 24, 2010 at 8:27 AM, valdhor valdhorli...@...wrote: > > > > > > > private function onMouseWheelEvent(event:MouseEvent):void > > { > > event.delta += event.delta < 0 ? -50 : 50; > > } > > > > > > > > --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: > > > > > > I'm pretty sure at least one person claimed victory by modifying the > > delta of the MouseEvent. > > > > > > > > > On 5/21/10 12:56 PM, "dorkiedorkfromdorktown@" > > dorkiedorkfromdorktown@ wrote: > > > > > > > > > > > > > > > > > > > > > I'm having this issue too. Is there any solution? > > > > > > On Tue, May 18, 2010 at 3:30 PM, Alex Harui aharui@ wrote: > > > > > > > > > > > > > > > > > > Scrolling speed is a known issue. Some folks have had luck by modifying > > the delta property of the MouseEvent before the scroller sees it by using a > > capture phase or high priority event handler. > > > > > > > > > > > > On 5/18/10 11:23 AM, "Baz" lists@ <http://lists@ > wrote: > > > > > > > > > > > > > > > > > > > > > I have a skinnabledatacontainer with custom itemrender surrounded by a > > scroller and I want to adjust how many records are scrolled when the > > mouse-wheel is used. Currently it scrolls way to many records. Is there an > > easy way to do this? So far, the only way I've found is to extend the > > existing scroller, then override the mx_internals "set mouseWheel" function. > > The file also has to be AS, because overriding mx_internals functions > > doesn't work in mxml <fx:script>. It's a very heavy solution for a > > relatively simple activity, am I missing something? > > > > > > Cheers, > > > Baz > > > > > > > > > > > > > > > > > > > > > -- > > > Alex Harui > > > Flex SDK Team > > > Adobe System, Inc. > > > http://blogs.adobe.com/aharui > > > > > > > >