Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
streamlining of demos, new fancy multi-pointer drawing demo (swipey.h…
…tml)
- Loading branch information
Showing
8 changed files
with
284 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
var log = function() { | ||
$("#viewporter").append("<p>"+Array.prototype.slice.call(arguments).join(' ')+"</p>"); | ||
}; | ||
|
||
var debug = function() { | ||
|
||
log('landscape:', viewporter.isLandscape(), '('+window.orientation+')'); | ||
|
||
$('#viewporter-debug-width').text(window.innerWidth); | ||
$('#viewporter-debug-height').text(window.innerHeight); | ||
$('#viewporter-debug-useragent').text(navigator.userAgent); | ||
|
||
}; | ||
|
||
$(window).bind(viewporter.ACTIVE ? 'viewportready viewportchange' : 'load', function() { | ||
debug(); | ||
}); |
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
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
Oops, something went wrong.
0c7efc5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should give the new interaction widget a try for that swipey demo: https://github.com/jquery/jquery-ui/blob/interactions/ui/jquery.ui.interaction.js - abstracts mouse, touch and MSPointer events.