[Webkit-unassigned] [Bug 253580] WoWHead Talent Calculator No Longer Deselects on Right Click

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 10 13:36:59 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=253580

Karl Dubost <karlcow at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |karlcow at apple.com

--- Comment #14 from Karl Dubost <karlcow at apple.com> ---
This is the piece of code which is handling it.
In https://wow.zamimg.com/js/WH/Wow/TalentCalcDragonflight.js?9266e039b4

```
    function _(e) {
      let t = WH.ce('div', {
        className: c + '-tree'
      });
      WH.ae(m.elements.container, t);
      if (!WH.Device.isTouch()) {
        WH.aE(document, 'keydown', (e=>{
          if (e.key === 'Shift') {
            t.dataset.text = 1
          }
        }));
        WH.aE(document, 'keyup', (e=>{
          if (e.key === 'Shift') {
            delete t.dataset.text
          }
        }))
      }
      let a = WH.ce('div', {
        className: c + '-tree-space'
      });
      WH.ae(t, a);
      let n = m.elements.grid = WH.ce('div', {
        className: c + '-tree-grid'
      });
      WH.ae(a, n);
      m.checkpoints.forEach((t=>{
        let n = WH.ce('div', {
          className: c + '-tree-checkpoint',
          style: {
            top: 100 * (t.row - 1) / u + '%'
          }
        });
        if (e) {
          n.classList.add(c${ e })
        }
        WH.ae(n, WH.ce('div', {
          className: ${ c }-tree-checkpoint-line
        }));
        WH.ae(n, WH.ct(WH.term('required_format', t.points)));
        WH.ae(n, WH.ce('div', {
          className: ${ c }-tree-checkpoint-line
        }));
        WH.ae(a, n)
      }));
      let l;
      let s = () =>l = l || requestAnimationFrame((() =>{
        l = null;
        a.style.fontSize = Math.max(9, a.clientWidth / 50) + 'px';
        let e = a.clientWidth / 15;
        if (e < 25) {
          a.dataset.noPointsMargin = 1
        } else {
          delete a.dataset.noPointsMargin
        }
      }));
      s();
      if (window.ResizeObserver) {
        new ResizeObserver(s).observe(a)
      }
    }
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230310/444240bc/attachment.htm>


More information about the webkit-unassigned mailing list