mysticfall / pivot4j

Pivot4J provides a common API for OLAP servers which can be used to build an analytical service frontend with pivot style GUI.
Other
128 stars 101 forks source link

Inconsistent behavior with OLAP navigator drag & drop operation. #100

Closed mysticfall closed 11 years ago

mysticfall commented 11 years ago

When dragging a node from the source tree to the target area, sometimes the drop target does not get highlighted and refuses to accept the drop.

We need make it operate in a consistent manner to improve the user experience.

mysticfall commented 11 years ago

Just found the cause of this problem. The default value for 'tolerance' attribute of PrimeFaces' Droppable component seems to be 'intersect', which means in order for the drop operation to be accepted, the dragged element must overlapp at least 50% of the target area.

It's not very intuitive for our case, and depending on where you grap the draggable element or how large it is, sometimes it's hard to hit the 'sweet spot'.

Changing this attribute to 'pointer', now we have somewhat smaller target area, but it shows consistent behavior which can make drag&drop operations more predictable.