Comparing version 1.8.0 to 1.8.1
@@ -98,2 +98,3 @@ 'use strict'; | ||
this.elapsed_time_since_pressed = 0; | ||
this.click_triggered = false; | ||
} | ||
@@ -117,3 +118,3 @@ | ||
{ | ||
return (new Date() - this.elapsed_time_since_pressed) < 110 | ||
return this.click_triggered; | ||
} | ||
@@ -154,2 +155,3 @@ | ||
this.left_mouse_button_down = false; | ||
this.click_triggered = (new Date() - this.elapsed_time_since_pressed) < 110; | ||
break; | ||
@@ -264,2 +266,3 @@ case 1: | ||
this.elapsed_time_since_pressed = 0; | ||
this.click_triggered = false; | ||
} | ||
@@ -584,2 +587,3 @@ } | ||
this.elapsed_time_since_pressed = 0; | ||
this.click_triggered = false; | ||
@@ -590,3 +594,3 @@ } | ||
{ | ||
return (new Date() - this.elapsed_time_since_pressed) < 110 | ||
return this.click_triggered; | ||
} | ||
@@ -786,2 +790,3 @@ | ||
this.left_mouse_button_down = false; | ||
this.click_triggered = (new Date() - this.elapsed_time_since_pressed) < 110; | ||
} | ||
@@ -840,2 +845,3 @@ this.remove_pointer(p.id); | ||
this.elapsed_time_since_pressed = 0; | ||
this.click_triggered = false; | ||
} | ||
@@ -842,0 +848,0 @@ } |
@@ -94,2 +94,3 @@ class MathUtilities | ||
this.elapsed_time_since_pressed = 0; | ||
this.click_triggered = false; | ||
} | ||
@@ -113,3 +114,3 @@ | ||
{ | ||
return (new Date() - this.elapsed_time_since_pressed) < 110 | ||
return this.click_triggered; | ||
} | ||
@@ -150,2 +151,3 @@ | ||
this.left_mouse_button_down = false; | ||
this.click_triggered = (new Date() - this.elapsed_time_since_pressed) < 110; | ||
break; | ||
@@ -260,2 +262,3 @@ case 1: | ||
this.elapsed_time_since_pressed = 0; | ||
this.click_triggered = false; | ||
} | ||
@@ -580,2 +583,3 @@ } | ||
this.elapsed_time_since_pressed = 0; | ||
this.click_triggered = false; | ||
@@ -586,3 +590,3 @@ } | ||
{ | ||
return (new Date() - this.elapsed_time_since_pressed) < 110 | ||
return this.click_triggered; | ||
} | ||
@@ -782,2 +786,3 @@ | ||
this.left_mouse_button_down = false; | ||
this.click_triggered = (new Date() - this.elapsed_time_since_pressed) < 110; | ||
} | ||
@@ -836,2 +841,3 @@ this.remove_pointer(p.id); | ||
this.elapsed_time_since_pressed = 0; | ||
this.click_triggered = false; | ||
} | ||
@@ -838,0 +844,0 @@ } |
{ | ||
"name": "pit-js", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Pollable Input", | ||
@@ -5,0 +5,0 @@ "module": "examples/build/PIT.module.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
188345
1894