Long press on up/down scroll button of the slider widget should scroll the slider widget thumb continuously

286 Views Asked by At

we have used a Slider widget (org.eclipse.swt.widgets.Slider) in our composite (which is inside a plugin) to scroll the FigureCanvas (the canvas's scroll bar has been disabled).

This Slider should function in the same way as the scroll bar. But whenever we long press on the slider widgets buttons they don't get highlighted (as if they are clicked) and the thumb doesn't move continuously. Even if we long press it is considered as 1 click and the thumb moves one increment only.

Do we have to set any values in order to get the expected behavior.

1

There are 1 best solutions below

0
On BEST ANSWER

I figured it out.The dragdetectlsitener is some how blocking the continuous scroll that should happen on long mouse press on the up/down buttons of the Slider. But I dont know why this is happening. Is this an expected behaviour or am I missing something. can there be any workarounds to solve this issue?