kopia lustrzana https://github.com/RootMyTV/RootMyTV.github.io
index: trigger exploit when just clicking the slider
This seemed somewhat counterintuitive on non-magic remotes...pull/25/head
rodzic
2c3dc827e1
commit
c08195400c
|
@ -288,6 +288,7 @@
|
||||||
var velX = 0;
|
var velX = 0;
|
||||||
var lastUpdate = Date.now();
|
var lastUpdate = Date.now();
|
||||||
var prevPosX = 0;
|
var prevPosX = 0;
|
||||||
|
var moved = false;
|
||||||
|
|
||||||
function slidermousedown(e) {
|
function slidermousedown(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -303,6 +304,7 @@
|
||||||
function slidermousemove(e) {
|
function slidermousemove(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var deltaX = e.clientX - startX;
|
var deltaX = e.clientX - startX;
|
||||||
|
moved = true;
|
||||||
if (deltaX < 0) {
|
if (deltaX < 0) {
|
||||||
deltaX = 0;
|
deltaX = 0;
|
||||||
} else if (deltaX > endX) {
|
} else if (deltaX > endX) {
|
||||||
|
@ -315,12 +317,13 @@
|
||||||
window.onmousemove = null;
|
window.onmousemove = null;
|
||||||
window.onmouseup = null;
|
window.onmouseup = null;
|
||||||
velX = 0;
|
velX = 0;
|
||||||
if (posX == endX) {
|
if (posX == endX || (posX == 0 && !moved)) {
|
||||||
begin_exploit();
|
begin_exploit();
|
||||||
slider.onmousedown = null;
|
slider.onmousedown = null;
|
||||||
} else {
|
} else {
|
||||||
grabbed = false;
|
grabbed = false;
|
||||||
}
|
}
|
||||||
|
moved = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function animate_tick() {
|
function animate_tick() {
|
||||||
|
|
Ładowanie…
Reference in New Issue