Skip to main content

Search and Top Navigation

#9665 open bug ()

Opened November 18, 2013 09:32PM UTC

Last modified November 18, 2013 09:39PM UTC

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/

Attachments (0)
Change History (4)

Changed November 18, 2013 09:34PM UTC by capsule comment:1

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.

Changed November 18, 2013 09:35PM UTC by scottgonzalez comment:2

status: newopen

Changed November 18, 2013 09:35PM UTC by scottgonzalez comment:3

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

Changed November 18, 2013 09:39PM UTC by capsule comment:4

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/