Since addition of TCocoaManualScrollHost, TPanel in TScrollBox will not mouse wheel scroll
Original Reporter info from Mantis: djenkins @dfjenkins
-
Reporter name: David Jenkins
Original Reporter info from Mantis: djenkins @dfjenkins
- Reporter name: David Jenkins
Description:
With a TPanel inside a TScrollBox, the TCocoaManualScrollHost swallows mouse wheel scrolling instead of passing it up to parent and TPanel will not scroll.
Steps to reproduce:
Build attached project with Cocoa widgetset. Place mouse over panel. Scroll with mouse wheel. ScrollBox does not respond.
Additional information:
The expected result is that NSView.scrollwheel associated with TPanel is called, doesn't cause any response, and then the parent.scrollWheel is called. TCocoaManualScrollHost is a NSScrollView. It swallows the scrollWheel event and does not pass it up to the parent.
My initial patch for this was to override TCocoaManualScrollHost.scrollWheel and call superview.scrollWheel instead of inherited. However, the change to TCocoaManualScrollWheel. scrollWheel (SVN 61771 / Mantis 36001) means that TCocoaManualScrollHost.scrollWheel is not called and an override of scrollWheel at that level can't be used to pass the event up to the parent.
Is it possible that overriding TCocoaManualScrollHost.scrollWheel and passing the event up to superview instead of calling inherited could solve 36001 and this bug?