a popup doesn't open at the pointer inside a listitem with a double click listener

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: 10.2.1
    • Component/s: None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. visit the zul with a mobile browser (dev tool >device toolbar > ipad pro
      2. 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

      zk-5988.js

        1. zk-5988.js
          1 kB
          hawk
        2. zk-5988.png
          10 kB
          hawk
        3. zk-5988.zul
          1 kB
          hawk

            Assignee:
            Unassigned
            Reporter:
            hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: