Now checking both forwardClick and backClick to ensure the back button isn't clicked after the forward click or vice versa
This commit is contained in:
parent
b5148b2d23
commit
773634e26f
1 changed files with 14 additions and 3 deletions
|
|
@ -72,6 +72,15 @@ export default {
|
||||||
? this.customButtontext
|
? this.customButtontext
|
||||||
: this.getCmsContent(this.cmsWidgetName, "ForwardButtonText");
|
: this.getCmsContent(this.cmsWidgetName, "ForwardButtonText");
|
||||||
},
|
},
|
||||||
|
navigationButtonClicked: {
|
||||||
|
get: function () {
|
||||||
|
return this.forwardClicked || this.backClicked;
|
||||||
|
},
|
||||||
|
set: function (newValue) {
|
||||||
|
this.forwardClicked = newValue;
|
||||||
|
this.backClicked = newValue;
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onResize() {
|
onResize() {
|
||||||
|
|
@ -82,10 +91,12 @@ export default {
|
||||||
},
|
},
|
||||||
removeLoader() {
|
removeLoader() {
|
||||||
this.$refs.buttonMain.removeLoader();
|
this.$refs.buttonMain.removeLoader();
|
||||||
|
|
||||||
document.onkeydown = function (e) {
|
document.onkeydown = function (e) {
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
this.forwardClicked = false;
|
|
||||||
|
this.navigationButtonClicked = false;
|
||||||
},
|
},
|
||||||
buttonClick() {
|
buttonClick() {
|
||||||
//prevent keyboard input after button click
|
//prevent keyboard input after button click
|
||||||
|
|
@ -93,13 +104,13 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!this.forwardClicked) {
|
if (!this.navigationButtonClicked) {
|
||||||
this.$emit("ForwardClicked");
|
this.$emit("ForwardClicked");
|
||||||
this.forwardClicked = true;
|
this.forwardClicked = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
linkClick() {
|
linkClick() {
|
||||||
if (!this.backClicked) {
|
if (!this.navigationButtonClicked) {
|
||||||
this.$emit("BackClicked");
|
this.$emit("BackClicked");
|
||||||
this.backClicked = true;
|
this.backClicked = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue