Closes #5, using $.offset instead of clientHeight
This commit is contained in:
parent
155a537cb5
commit
c3f949a404
|
@ -94,11 +94,11 @@
|
||||||
* @return boolean The parent's _mouseStart return value
|
* @return boolean The parent's _mouseStart return value
|
||||||
*/
|
*/
|
||||||
_mouseStart: function (event) {
|
_mouseStart: function (event) {
|
||||||
|
var pos = this.scrollElement.offset();
|
||||||
if (
|
if (
|
||||||
(event.pageX > this.scrollElement.prop('clientWidth') +
|
(event.pageX > this.scrollElement.prop('clientWidth') + pos.left) ||
|
||||||
this.scrollElement.prop('offsetLeft')) ||
|
(event.pageY > this.scrollElement.prop('clientHeight') + pos.top)
|
||||||
(event.pageY > this.scrollElement.prop('clientHeight') +
|
) {
|
||||||
this.scrollElement.prop('offsetTop'))) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var retValue = $.ui.selectable.prototype._mouseStart.call(this,
|
var retValue = $.ui.selectable.prototype._mouseStart.call(this,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ui-selectableScroll",
|
"name": "ui-selectableScroll",
|
||||||
"version": "0.1.5",
|
"version": "0.1.6",
|
||||||
"title": "An extended jQuery-ui selectable with scroll capabilities",
|
"title": "An extended jQuery-ui selectable with scroll capabilities",
|
||||||
"licenses": [{
|
"licenses": [{
|
||||||
"type": "GPLv3",
|
"type": "GPLv3",
|
||||||
|
|
Loading…
Reference in New Issue