Skip to main content

Search and Top Navigation

#9655 closed bug (duplicate)

Opened November 12, 2013 11:19AM UTC

Closed November 12, 2013 11:30AM UTC

Droppable: Tolerance doesn't take draggable's axis into account

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

http://jsfiddle.net/apaul34208/Y6KM9/4/

When a draggable's axis is set, over() is triggered when the mouse pointer (not the draggable) is dragged over an accepting droppable regardless of the droppable's

tolerance value, even though the draggable is not within the droppable's tolerance area - i.e. beahaves as though tolerance was set to 'pointer'. Tested in multiple browsers, recent versions of jQueryUI.

Posted in stackoverflow: http://stackoverflow.com/questions/19915668/constrained-draggable-should-not-trigger-over-in-droppable-in-this-situation

Attachments (0)
Change History (4)

Changed November 12, 2013 11:23AM UTC by scottgonzalez comment:1

owner: → joshgreifer
status: newpending

I'm not seeing that behavior. In fact, I can't even get my pointer to the bottom droppable while the draggable exists since you're destroying the instance as soon as the pointer moves out of the draggable element.

Can you please provide an updated test case?

Changed November 12, 2013 11:25AM UTC by joshgreifer comment:2

_comment0: Replying to [comment:1 scott.gonzalez]: \ > I'm not seeing that behavior. In fact, I can't even get my pointer to the bottom droppable while the draggable exists since you're destroying the instance as soon as the pointer moves out of the draggable element. \ > \ > Can you please provide an updated test case? \ Sorry, posted incorrect jsFiddle. Updated. The linked one is an attempt at a workaround. \ [http://jsfiddle.net/joshgreifer/Y6KM9/]1384255642858659
status: pendingnew

Replying to [comment:1 scott.gonzalez]:

I'm not seeing that behavior. In fact, I can't even get my pointer to the bottom droppable while the draggable exists since you're destroying the instance as soon as the pointer moves out of the draggable element. Can you please provide an updated test case?

Sorry, posted incorrect jsFiddle. Updated. The linked one is an attempt at a workaround. jsFiddle to exhibit behavior is:

http://jsfiddle.net/joshgreifer/Y6KM9/

Changed November 12, 2013 11:28AM UTC by scottgonzalez comment:3

component: ui.draggableui.droppable
status: newopen
summary: droppable's over() fired when draggable not within its tolerance area if draggable's axis is setDroppable: Tolerance doesn't take draggable's axis into account

Changed November 12, 2013 11:30AM UTC by scottgonzalez comment:4

resolution: → duplicate
status: openclosed

Duplicate of #4977.