alump / GridStack

Vaadin layout add-on using gridstack.js library
Apache License 2.0
10 stars 7 forks source link

Unintended move on button click #2

Closed mku1059 closed 8 years ago

mku1059 commented 8 years ago

Clicking on a button within a widget, the listener gets called, but also dragging of the widget is activated. The click listener seems to filter the mouse up event, so the widget sticks at the mouse pointer. This effect can be reproduced with the demo app.

alump commented 8 years ago

This is Firefox specific issue.

alump commented 8 years ago

Actually now repeatable on Chrome too... looks like gridstack.js and vaadin's buttons do not like each others. This might be tricky to resolve.

alump commented 8 years ago

0.2.0 has a workaround, it now uses drag handles. This because gridstack.js and Vaadin components do not behave well together, if they fight over same events.

alump commented 8 years ago

0.2.1 will get GridStackButton that resolves issue without separate drag handle. New issues to be made with other misbehaving components.

alump commented 8 years ago

Both workarounds in 0.2.1