-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Normal
-
None
-
Affects Version/s: 10.2.1
-
Component/s: None
-
Security Level: Jimmy
-
None
Steps to Reproduce
- visit the zul with a mobile browser (dev tool >device toolbar > ipad pro
- click "show popup"
Current Result
the popup opens at the top-left corner
Expected Result
the popup opens at the mouse pointer's position
Debug Information
- the key is <listitem onDoubleClick="">, if not double click listener, this bug doesn't happen. another is the parent of <a> is <idspace>, not a listitem
- the popup will open the last clicking position when you click "show popup", because zk failed to record the current pointer position for
_dblTapStart: function (evt) { ... // ZK-2179: should skip row widget var p = zk.Widget.$(evt.target).parent; if (p && (!zk.isLoaded('zul.grid') || !(p instanceof zul.grid.Row)) && (!zk.isLoaded('zul.sel') || !(p instanceof zul.sel.Listitem) && !(p instanceof zul.sel.Treerow))) tevt.stopPropagation(); },
- under my quick test, without the code above, users still can scroll a listbox. need to verify the code is needed or not.
Workaround
- relates to
-
ZK-2179 Listbox can't scroll on tablet device if listitem has context or listen to onDoubleClick event
-
- Closed
-