Skip to content

When options.axis is "x" or "y", allow drag to rearrange placeholder element even when outside of the container element. #640

Closed
wants to merge 1 commit into from

2 participants

@MoonScript

You can see this fix in-action here:
http://jsfiddle.net/MoonScript/vLyfU/7/show/
(Full Fiddle source: http://jsfiddle.net/MoonScript/vLyfU/7/)

Once you grab an item and start dragging up and down, move your mouse to the left as you drag, and you'll see that the yellow placeholder element will move up and down along with your mouse.

You can see how it currently works to compare:
http://jsfiddle.net/MoonScript/vLyfU/show/

@MoonScript MoonScript Sortable: update placeholder when axis is x or y. Fixed #8274 - place…
…holder doesn't move when dragging outside of container element
c9ad237
@scottgonzalez
jQuery Foundation member

Thanks, landed in b8b0c52.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.