pass pop menu clicks to children. handle touch pop ops for cam
This commit is contained in:
parent
63b2b00b21
commit
4c5cb4925e
2 changed files with 31 additions and 8 deletions
|
|
@ -999,7 +999,11 @@ gapp.register("kiri.ui", [], (root, exports) => {
|
|||
};
|
||||
if (opt.auto !== false) {
|
||||
el.addEventListener("mouseenter", openit);
|
||||
el.addEventListener("touchstart", () => {
|
||||
el.addEventListener("touchstart", (ev) => {
|
||||
if (ev.target.onclick) {
|
||||
// pass action clicks on children
|
||||
ev.target.onclick(ev);
|
||||
}
|
||||
mobile = true;
|
||||
if (popped) {
|
||||
closeit();
|
||||
|
|
|
|||
Loading…
Reference in a new issue