Skip to content

Instantly share code, notes, and snippets.

@moyoinc
moyoinc / jsd.draggableIsotopeAtom.js
Created September 24, 2012 06:35 — forked from jstarrdewar/jsd.draggableIsotopeAtom.js
Extension of jQueryUI Draggable that works with Isotope
/**
* The purpose of this jQuery UI plugin is to account for the bug in Firefox that doesn't correctly report the positions
* of elements that are positioned with CSS transforms. Luckily, isotope keeps track of what the position should be, so
* we can calculate the correct offset.
*
* @author: John Starr Dewar
*/
(function($) {
// Arguments to .extend are returned object, merge object 1, merge object 2
$.widget('jsd.draggableIsotopeAtom', $.ui.draggable, {