Skip to content
Permalink
Browse files

Sortable: update placeholder when axis is x or y. Fixed #8274 - place…

…holder doesn't move when dragging outside of container element
  • Loading branch information...
MoonScript authored and scottgonzalez committed Apr 25, 2012
1 parent 27d1023 commit b8b0c528301ab2bfc49e36143a3c4f6451e58ccd
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.sortable.js
@@ -467,8 +467,8 @@ $.widget("ui.sortable", $.ui.mouse, {

_intersectsWithPointer: function(item) {

var isOverElementHeight = $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
isOverElementWidth = $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
var isOverElementHeight = (this.options.axis === 'x') || $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),
isOverElementWidth = (this.options.axis === 'y') || $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),
isOverElement = isOverElementHeight && isOverElementWidth,
verticalDirection = this._getDragVerticalDirection(),
horizontalDirection = this._getDragHorizontalDirection();

0 comments on commit b8b0c52

Please sign in to comment.
You can’t perform that action at this time.