Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Packery
Commits
0b5c62f8
Commit
0b5c62f8
authored
12 years ago
by
David DeSandro
Browse files
Options
Download
Email Patches
Plain Diff
use Draggabilly v1.0
parent
e77293d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
component.json
+1
-1
component.json
js/packery.js
+3
-3
js/packery.js
with
4 additions
and
4 deletions
+4
-4
component.json
+
1
-
1
View file @
0b5c62f8
...
...
@@ -19,7 +19,7 @@
"matches-selector"
:
"desandro/matches-selector#>=0.2.0"
},
"devDependencies"
:
{
"draggabilly"
:
"desandro/draggabilly#>=
0.1.2
"
,
"draggabilly"
:
"desandro/draggabilly#>=
1.0.0
"
,
"jquery"
:
"~1"
,
"jquery-ui-draggable"
:
"git://gist.github.com/4985610.git"
,
"qunit"
:
"~1"
...
...
This diff is collapsed.
Click to expand it.
js/packery.js
+
3
-
3
View file @
0b5c62f8
...
...
@@ -145,13 +145,13 @@ Packery.prototype._create = function() {
// create drag handlers
var
_this
=
this
;
this
.
handleDraggabilly
=
{
dragStart
:
function
(
event
,
pointer
,
draggie
)
{
dragStart
:
function
(
draggie
)
{
_this
.
itemDragStart
(
draggie
.
element
);
},
dragMove
:
function
(
event
,
pointer
,
draggie
)
{
dragMove
:
function
(
draggie
)
{
_this
.
itemDragMove
(
draggie
.
element
,
draggie
.
position
.
x
,
draggie
.
position
.
y
);
},
dragEnd
:
function
(
event
,
pointer
,
draggie
)
{
dragEnd
:
function
(
draggie
)
{
_this
.
itemDragEnd
(
draggie
.
element
);
}
};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help