feat: toggle reply to on widget based on feature flag (#8261)

Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
This commit is contained in:
Shivam Mishra
2023-10-31 21:33:14 +05:30
committed by GitHub
parent 29f18c7f18
commit b6584ec68b
7 changed files with 25 additions and 5 deletions

View File

@@ -19,6 +19,10 @@ export default {
required: true,
validator: value => ['left', 'right'].includes(value),
},
disabled: {
type: Boolean,
default: false,
},
},
data() {
return {
@@ -29,9 +33,11 @@ export default {
},
methods: {
handleTouchStart(event) {
if (this.disabled) return;
this.startX = event.touches[0].clientX;
},
handleTouchMove(event) {
if (this.disabled) return;
const touchX = event.touches[0].clientX;
let deltaX = touchX - this.startX;