[Webkit-unassigned] [Bug 279011] Remove shouldDispatchedSimulatedMouseEventsAssumeDefaultPrevented for amazon.*

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 2 04:54:57 PDT 2024


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

--- Comment #4 from Karl Dubost <karlcow at apple.com> ---
All of this is handled by

```
                ca = function() {
                    function b(a) {
                        var b = Math.round(Math.min(l.width(), q.rect.width / a));
                        a = Math.round(Math.min(l.height(), q.rect.height / a));
                        r.css({
                            width: b,
                            height: a
                        });
                        d = [b, a]
                    }
                    var c = this,
                        d = [0, 0],
                        n = (q.detailSize && q.detailSize[0] || 5E8) / y[2],
                        f = (q.detailSize && q.detailSize[1] ||
                        5E8) / y[3];
                    n = f > n ? f : n;
                    a("#magnifierLens").remove();
                    var r = a("\x3cdiv id\x3d'magnifierLens' /\x3e").css({
                        position: "absolute"
                    });
                    e.generalImageUrls.zoomLensBackground && r.css({
                        backgroundImage: "url(" + e.generalImageUrls.zoomLensBackground + ")"
                    });
                    D.showMagnifierOnHover ? H(r) : r.css("cursor", "pointer");
                    c.updatePosition = function() {
                        var a = [y[2] - d[0], y[3] - d[1]],
                            b = 0 >= a[0] ? .5 : Math.max(0, Math.min(1, (v[0] - d[0] / 2 - y[0] - c.offset.left) / a[0])),
                            n = 0 >= a[1] ? .5 : Math.max(0, Math.min(1, (v[1] - d[1] / 2 - y[1] - c.offset.top) / a[1])),
                            f = y[0] +
                            Math.round(b * a[0]);
                        a = y[1] + Math.round(n * a[1]);
                        r.get(0).style.left = f + "px";
                        r.get(0).style.top = a + "px";
                        return [b, n]
                    };
                    c.destroy = function() {
                        r.remove()
                    };
                    c.offset = l.offsetParent().offset();
                    b(n);
                    c.updatePosition();
                    r.appendTo(l.parent());
                    q.detailImage[0].complete || q.detailImage.load(function() {
                        var a = q.detailImage.width() / y[2];
                        b(a);
                        c.updatePosition()
                    })
                };
```

-- 
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/20240902/aa55126a/attachment-0001.htm>


More information about the webkit-unassigned mailing list