Slider: `ebLast` and `dy` only needed with draging
parent
17f72c680e
commit
9b1cfd4836
|
|
@ -64,12 +64,12 @@ try { // For making it possiblie to run the test app in the following catch stat
|
|||
// Initialize the level
|
||||
o.v.level = (o.c.currLevel||o.c.currLevel===0)?o.c.currLevel:o.c.steps/2;
|
||||
|
||||
o.v.ebLast = 0;
|
||||
o.v.dy = 0;
|
||||
|
||||
// Only add interactivity if wanted.
|
||||
if (o.c.dragableSlider) {
|
||||
|
||||
o.v.ebLast = 0;
|
||||
o.v.dy = 0;
|
||||
|
||||
o.f.wasOnDragRect = (exFirst, eyFirst)=>{
|
||||
"ram";
|
||||
return exFirst>o.c.dragRect.x && exFirst<o.c.dragRect.x2 && eyFirst>o.c.dragRect.y && eyFirst<o.c.dragRect.y2;
|
||||
|
|
|
|||
Loading…
Reference in New Issue