Perfect-scrollbar: Touch propagation

Created on 20 Jul 2016  ·  7Comments  ·  Source: mdbootstrap/perfect-scrollbar

I have seen there already exists a similar issue reported and already closed,
but i seem to be having the same problem only on Ipad.
I am using angular with perfect-scrollbar, and there is big problems in editing the fields.

http://codepen.io/MigFerreira/pen/grvBkR?editors=1010

If i request desktop site (which is exacly the same dont know what the browser does internally) it works properly.

help wanted bug

All 7 comments

This is still a problem, on the ipad, when you click in the scrollable area, the touch (click) doesn't propagate.

EDIT: Ok, I have included the latest version on master through a direct repo link in npm, and this issue seems solved, the problem though is that the coördinates are the ones from the previous touch, which isn't good, as our application needs the current ones to be able to create an item in that place.

EDIT2: I thought so, but npm doesn't include the whole repo, so I can't really see if it works now with that latest version....

swipePropagation seems like not working. Will investigate. It may take a while, as I recently cannot have enough time to work on PS because of other works. And when I have, I'd like to focus on implementing v1. I will try my best though. Any contribution will be welcomed too.

I'm having similar issue. I'm using:

PS is not propagating touchStart event to MaterialUI, I'm testing this change:
https://github.com/lechup/perfect-scrollbar/commit/e8e967118df786343282a4c4180bef40bb33ab5c

With success. But probabbly it destroys some default behaviour?

@noraesae why we would want to stop propagating touchStart events by default?

This is also issue in the ngx-perfect-scrollbar wrapper library which I went around by generating the touch event by copying the event send by perfect-scrollbar and sending it to the parent. It works but is a bit hackish so would be nice to be able to get rid of that.

Would be nice to get this fixed. @utatti do you know why the touchStart event propagation is stopped in the touch handler? If I knew the reason I could try to think of a solution.

I've fixed this in the master. It'll be released as a new version later, but you can always test it by manually building from source.

I've removed swipePropagation option itself, because it's true by default and it's exactly how native scroll works. Also touch propagation cannot be implemented without dropping the option. Now all touch events will be properly propagated.

If there is a new problem by this fix, please upload a separate issue. Thanks.

I am using nested perfect scrollbars on the same page.
Parent div is scrolling vertically and child div is scrolling horizontally.

But in ios devices by touching the child div I am unable to scroll the vertical scroll able parent. It is working fine for all other devices but not in ios devices.

PS : I am using latest version of perfect scrollbar.

Any Solution will be appreciable @utatti 👍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chavishindler picture chavishindler  ·  3Comments

gpluess picture gpluess  ·  4Comments

jaycbrf4 picture jaycbrf4  ·  6Comments

hatashiro picture hatashiro  ·  4Comments

hatashiro picture hatashiro  ·  7Comments