I struggled with a bug/behavior in <layer> tag on touch devices. I have the following XML structure:
<layer name="infocard_container"
type="container"
handcursor="false"
parent="STAGE"
capture="true"
bgcapture="true"
maskchildren="true"
keep="true"
width="340"
height="100%"
x="0"
y="0"
alpha="0"
autoalpha="true">
<layer name="infocard"
url="%$assetsUrl%/plugins/custom/infocard.js"
width="100%"
height="100%"
enabled="true"
capture="true"
bgcapture="true"
children="true"
maskchildren="true" />
</layer>
Display More
In url="%$assetsUrl%/plugins/custom/infocard.js" plugin I create an HTML element which must be scrollable. Scroll works well with a mouse, but doesn't work on touch devices like mobile or laptop with touch screen.
I've tried different variations of CSS rules (overflow: scroll, very high z-index, touch-action etc.), <layer> attributes (capture, bgcapture etc.), scrollarea plugin, but neither works. However the "touchstart", "touchmove" events on my custom element work well, so that means that no html parent element calls `e.stopPropagation()`. So I did not figure out what prevents touch scroll from working.
Does someone has any idea about it?