Skip to content

Commit e032dd4

Browse files
committed
[bug] fix edge not disappearing on touch devices
1 parent bfa72ff commit e032dd4

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

‎js/control.js‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,11 @@ var control = (function(){
557557
func: function(){
558558
edge.destroy();
559559
}
560+
},{
561+
event: "touchend",
562+
func: function(){
563+
edge.destroy();
564+
}
560565
},{
561566
event: "keydown",
562567
func: function(){
@@ -706,6 +711,11 @@ var control = (function(){
706711
func: function(){
707712
edge.destroy();
708713
}
714+
},{
715+
event: "touchend",
716+
func: function(){
717+
edge.destroy();
718+
}
709719
},{
710720
event: "keydown",
711721
func: function(){
@@ -889,6 +899,11 @@ var control = (function(){
889899
func: function(){
890900
edge.destroy();
891901
}
902+
},{
903+
event: "touchend",
904+
func: function(){
905+
edge.destroy();
906+
}
892907
},{
893908
event: "keydown",
894909
func: function(){
@@ -931,6 +946,11 @@ var control = (function(){
931946
func: function(){
932947
edge.destroy();
933948
}
949+
},{
950+
event: "touchend",
951+
func: function(){
952+
edge.destroy();
953+
}
934954
},{
935955
event: "keydown",
936956
func: function(){
@@ -1085,6 +1105,11 @@ var control = (function(){
10851105
func: function(){
10861106
edge.destroy();
10871107
}
1108+
},{
1109+
event: "touchend",
1110+
func: function(){
1111+
edge.destroy();
1112+
}
10881113
},{
10891114
event: "keydown",
10901115
func: function(){
@@ -1228,6 +1253,11 @@ var control = (function(){
12281253
func: function(){
12291254
edge.destroy();
12301255
}
1256+
},{
1257+
event: "touchend",
1258+
func: function(){
1259+
edge.destroy();
1260+
}
12311261
},{
12321262
event: "keydown",
12331263
func: function(){
@@ -1489,6 +1519,11 @@ var control = (function(){
14891519
func: function(){
14901520
edge.destroy();
14911521
}
1522+
},{
1523+
event: "touchend",
1524+
func: function(){
1525+
edge.destroy();
1526+
}
14921527
},{
14931528
event: "keydown",
14941529
func: function(){

‎js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
varversion=(function(){
22

33
// version is normally bumped when the state needs changing or any new functionality is added
4-
varcurrent="3.1.0";
4+
varcurrent="3.1.1";
55

66
varcompare=function(a,b){
77
varpa=a.split(".");

0 commit comments

Comments
(0)