Skip to content
Browse files

touchstart and touchend events

  • Loading branch information...
1 parent 5e48364 commit acf84552e3a06b50428c4ecff0ef99ac4520a5bd @jb-brown jb-brown committed Mar 21, 2011
View
5 chrome-extension-mac/content_script/event_handlers.js
@@ -95,7 +95,7 @@ DepthJS.eventHandlers.onSelectorBoxMode = function() {
// POINTER -----------------------------------------------------------------------------------------
DepthJS.eventHandlers.onRegister = function(data) {
if (DepthJS.verbose) console.log("DepthJS: User registered their hand");
- DepthJS.trigger(window, "touchstart");
+ DepthJS.trigger(window, "touchStart");
if (data.mode == "twohands") {
console.log("Ignoring in two hands for now");
return;
@@ -113,7 +113,6 @@ DepthJS.eventHandlers.onRegister = function(data) {
DepthJS.lastRegisterTime = new Date();
DepthJS.state = DepthJS.registerMode;
DepthJS[DepthJS.registerMode].show();
- $("#kinect-help").hide();
};
DepthJS.eventHandlers.onUnregister = function() {
@@ -123,7 +122,7 @@ DepthJS.eventHandlers.onUnregister = function() {
DepthJS.selectorBox.hide();
DepthJS.selectorBoxPopup.hide();
DepthJS.depthose.hide();
- $("#kinect-help").show();
+ DepthJS.trigger(window, "touchStop");
};
DepthJS.eventHandlers.onHandClick = function() {
View
11 chrome-extension-mac/content_script/init.js
@@ -18,15 +18,8 @@ $(function() {
left: "20px"
})
.appendTo("body");
- $("<div id='kinect-help'/>").text("move your hand closer until you see your hand on the screen")
- .css({
- position: "fixed",
- left: "55px",
- bottom: "20px",
- backgroundColor: "white",
- padding: 4
- })
- .appendTo("body");
+
+
// console.log($("img"));

0 comments on commit acf8455

Please sign in to comment.
Something went wrong with that request. Please try again.