View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0036048||Lazarus||Widgetset||public||2019-09-05 21:59||2019-09-13 21:38|
|Reporter||David Jenkins||Assigned To|
|Product Version||2.0.4||Product Build|
|Target Version||Fixed in Version|
|Summary||0036048: Since addition of TCocoaManualScrollHost, TPanel in TScrollBox will not mouse wheel scroll|
|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?
|Tags||No tags attached.|
|Fixed in Revision|