Opened 5 years ago

Last modified 5 years ago

#9665 open bug

Droppable: Tolerance "touch" triggers too early

Reported by: capsule Owned by:
Priority: minor Milestone: none
Component: ui.droppable Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

Hi,

It seems like tolerance "touch" triggers even if the draggable just "touches" the droppable without overlapping it by any pixel.

Expected behaviour: at least 1px of overlap should trigger the droppable behaviour. Current behaviour: sibling elements trigger it

Demo: http://jsfiddle.net/qNaHE/4/

Change History (4)

comment:1 Changed 5 years ago by capsule

In the demo, simply drag 2 blue blocks to the grey area. Then move a red block next to another one. The second block will be rejected even tho it only "touches" the other one, without overlapping by any pixel.

comment:2 Changed 5 years ago by Scott González

Status: newopen

comment:3 Changed 5 years ago by Scott González

Summary: Tolerance "touch" triggers too earlyDroppable: Tolerance "touch" triggers too early

comment:4 Changed 5 years ago by capsule

And this is a much more simple demo without any rounding function nor grid that still produces the bug (harder to reproduce because you have to be pixel perfect tho ;-)) : http://jsfiddle.net/qNaHE/6/

Note: See TracTickets for help on using tickets.