forked from tomlongo/Flickable.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tom Longo
committed
Feb 17, 2012
1 parent
590f91a
commit 8256e12
Showing
5 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* Licensed under the Whatever License. Use it for whatever you want! | ||
* | ||
* @author [email protected] | ||
* @version 1.0.2 | ||
* @version 1.0.3 | ||
* | ||
* @requires | ||
* Zepto JavaScript Library | ||
|
@@ -271,7 +271,13 @@ | |
(d == 'y') ? style = '(0,'+pos+'px,0)' : style = '('+pos+'px,0,0)'; | ||
|
||
// Zepto does not currently support setting translate3d via .css() so we have to do it manually | ||
document.getElementById(el.attr('id')).style.webkitTransform = 'translate3d'+style; | ||
if(typeof document.getElementById(el.attr('id')).style.webkitTransform != 'undefined') { | ||
document.getElementById(el.attr('id')).style.webkitTransform | ||
} else if (typeof document.getElementById(el.attr('id')).style.mozTransform != 'undefined') { | ||
document.getElementById(el.attr('id')).style.mozTransform = 'translate3d'+style; | ||
} else { | ||
document.getElementById(el.attr('id')).style.transform = 'translate3d'+style; | ||
} | ||
|
||
} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.