Binaryify/vue-custom-scrollbar

Click is not registered for iOS on first interaction

ryanblak opened this issue · 1 comments

When interacting with elements passed into the scrollbar slot, the first touch does not register as a click on iOS Safari.

In vue-scrollbar.vue there is the event handling code @mouseover.once="update". The update method calls a ps.update, which results in the content changing. In iOS, this results in the events lower in the hierarchy not firing; one of those events is click. This StackOverflow post explains the issue well.

thank for the feedback~