OS X ScrollView with Mouse Wheel

Hi,

after doing some research on this topic I gathered this informations:

This blog entry -->

https://coronalabs.com/blog/2016/09/27/what-have-coronas-engineers-accomplished-lately/

It says: ScrollView/TableView mouse support: On desktop systems, it is only natural to want to use a mouse’s scroll wheel to scroll a widget ScrollView or TableView. That is now possible.

A feature request -->

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/10303932-mouse-scroll-wheel-events

This shows a possible solution by using the axis event, but I can’t get this to work in simulator.

Another feature request -->

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/11517033-mouse-scroll-wheel-with-scrollview-widget

This is marked as “started”.

A great forum entry:  https://forums.coronalabs.com/topic/61465-osx-scrollview-working-with-mouse-wheel/

This works, but is using an undocumented property.

Can somebody give me a hint, which is the best way to go?

Kind regards,

Tobias

Hi Tobias. Let me try and answer this.

The two feature requests are different. The one that’s completed allows the mouse scroll wheel to act as an additional axis event. That has been complete for some time. The second one marked started is to add scroll wheel events to widgets. I was told that it should be working for scrollViews and tableViews but not for other widgets. I don’t know if we plan on adding it to other widgets or not. 

I’ve reached out to Engineering to find out the status on what’s involved in making it work.

As for the forum post, I wouldn’t call that undocumented. Mouse events including capturing the scrollWheel have been in with the completion of the “axis” based feature request listed at the top. If this is working for you, I would use it.  

Rob

Hi Tobias. Let me try and answer this.

The two feature requests are different. The one that’s completed allows the mouse scroll wheel to act as an additional axis event. That has been complete for some time. The second one marked started is to add scroll wheel events to widgets. I was told that it should be working for scrollViews and tableViews but not for other widgets. I don’t know if we plan on adding it to other widgets or not. 

I’ve reached out to Engineering to find out the status on what’s involved in making it work.

As for the forum post, I wouldn’t call that undocumented. Mouse events including capturing the scrollWheel have been in with the completion of the “axis” based feature request listed at the top. If this is working for you, I would use it.  

Rob