How to resist Flex ListBase components scrolling on mouseWheel if html page also scrolls   1 comment

Posted at 4:42 pm in Flash/Flex

Senario:

A Flex app is part of an html page that has a scrollBar. The Mouse is over a List component and the mouseWheel is used,  browsers (PC firefox) will sometimes scroll both the html page and the List. As far as I know there isn’t any easy way to disable Flex ListBase Classes interacting with mouseWheel? I’ve seen a few posts on forums asking how to overcome this problem.

A Solution:

For anyone that wants a fix here you go (click Button under List to change options):

http://www.darklump.co.uk/examples/flex/3/flash_and_browser_double_scroll/

(right click for source)

hope it helps, anyone got a better way?…

Written by paddy on May 14th, 2009

One Response to 'How to resist Flex ListBase components scrolling on mouseWheel if html page also scrolls'

Subscribe to comments with RSS

  1. Here’s a solution that I’ve used. It involves using JavaScript to cancel the mouse wheel event when it occurs on the Flex app:

    http://forums.esri.com/Thread.asp?c=158&f=2421&t=274624&mc=4#871027

    This way the Flex app can scroll when it has focus, and the HTML page can scroll when it has focus.

    Dasa Paddock

    14 May 09 at 7:33 pm

Leave a Reply