This project is archived and is in readonly mode.

#497 ✓duplicate
Daniel Steigerwald

Drag bugs

Reported by Daniel Steigerwald | November 26th, 2008 @ 12:26 PM

Drag should use getComputedStyle instead of getStyle, because we need pixies.

if ([z] = this.element.getStyle(this.options.modifiers[z]).toInt();

Element left/top values could be % or em (not pixies), then such element can't be dragged.

Easy fixable:

if ([z] = this.element.getComputedStyle(this.options.modifiers[z]).toInt();

Method getComputedStyle hast to returns always pixies, except for IE - But I posted DEAN EDWARDS fix in another ticket yet.

Drag.move initialize, this check will fail in FF3

if (element.getStyle('left') == 'auto' || element.getStyle('top') == 'auto')

Because FF can return 0px for unsetted left value.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins