Skip to content

Instantly share code, notes, and snippets.

View jstarrdewar's full-sized avatar

John Starr Dewar jstarrdewar

View GitHub Profile
@jstarrdewar
jstarrdewar / jsd.draggableIsotopeAtom.js
Created October 28, 2011 06:44
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, {