slint icon indicating copy to clipboard operation
slint copied to clipboard

mouse wheel on ScrollView scroll bar does not scroll

Open Be-ing opened this issue 3 years ago • 3 comments
trafficstars

Using the mouse scroll wheel on the content area of a ScrollView scrolls the view, but if the cursor is over the scroll bar, the view is not scrolled.

Be-ing avatar Aug 07 '22 00:08 Be-ing

I can reproduce this (with fluent style). It seems TouchArea needs a wheel-event callback.

tronical avatar Aug 15 '22 15:08 tronical

@ogoffart: Does that sound correct to you? A wheel-event in Slint that takes a WheelEvent struct as parameter, with position_x, position_y, delta_x and delta_y?

tronical avatar Aug 15 '22 15:08 tronical

See #1280

ogoffart avatar Aug 15 '22 17:08 ogoffart