Commit 3a7269d
committed
Fix eyedropper loupe region when UI zoom is not 1
On webkit2gtk, CSS zoom on <html> scales getBoundingClientRect() but
leaves event.clientX/Y in logical coords, so the loupe sampled a patch
offset from the cursor whenever Ctrl+=/Ctrl+- had been used. Normalize
the rect into the same space as the mouse coords before computing the
object-fit letterbox mapping.1 parent 621f235 commit 3a7269d
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
106 | 115 | | |
107 | 116 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
114 | 123 | | |
115 | 124 | | |
116 | 125 | | |
| |||
0 commit comments