aseba-community / thymio-vpl2

Next generation VPL for Thymio using Qt Quick from Qt 5.x
GNU Lesser General Public License v3.0
2 stars 5 forks source link

Dragging blocks from side bars tends to scroll them #6

Closed stephanemagnenat closed 7 years ago

stephanemagnenat commented 7 years ago

Currently because we have a ListView to hold block icons on side bars, dragging a block tend to scroll the sideview if the block is not dragged perpendicularly to the border, which happens with most users.

stephanemagnenat commented 7 years ago

I've reviewed the Google Material guidelines and did not find an obvious solution. I think that we will have to implement our own behaviour, for instance:

mbonani commented 7 years ago

Actually it seems that if you go horizontal it works and made correctly the drag and drop and if there is small composante vertical it make scroll the bar. Couldn't just inverse that? If there is a horizontal component make the drag and drop and scroll only if vertical. Basically it is what you describe, but I can also propose another behaviour: For me, if you take the center of a block element it should drag and drop. When you whant to scroll you click between the element. That is perhaps more simple to implement...

stephanemagnenat commented 7 years ago

The problem is that the drag behaviour is currently not under our control because we compose two Qt widgets. We should hack them to get back the control.

I am not sure about having a different behaviour in function of where you click, as this seems far from what people expect in touch-based interface, but it is hard to say without testing. Implementation-wise, it won't be easier.

marvelous commented 7 years ago

Scrolling disabled for now, to lower the priority of this bug