Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ReorderableWrap for full width widgets #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

t-langen
Copy link

Changes the drag targets from two horizontal/vertical rectangles to two triangles covering the upper left side for the "preDragTarget" and the lower right side for the "nextDragTarget". When a reorderable widget expands to full width, it is now more intuitive to drag it to the previous/next position.

For example, without this change, the user always had to drag the widget to the left to move it to the previous position when horizontal mode was enabled. Now it is possible to simply drag it upwards on the right side of the widget.

Updated:

Wrap_Diagonal

Before (horizontal direction):

Wrap_Horizontal

Before (vertical direction):

Wrap_Vertical

Changes the drag targets from two horizontal/vertical rectangles to two triangles covering the upper left side for the "preDragTarget" and the lower right side for the "nextDragTarget".
When a reorderable widget expands to full width, it is now more intuitive to drag it to the previous/next position.

For example, without this change, the user always had to drag the widget to the left to move it to the previous position when horizontal mode was enabled. Now it is possible to simply drag it upwards on the right side of the widget.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant