Skip to content

Commit 765c51d

Browse files
committed
[picker] Fix unpleasant flickering of mouse cursor in picking mode
1 parent c34a31e commit 765c51d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎platform/mv3/extension/js/scripting/tool-overlay.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ self.ubolOverlay = {
7070
this.pickerCSS = [
7171
`[${this.secretAttr}] { ${cssStyle} }`,
7272
`[${this.secretAttr}][loaded] { visibility: visible !important; }`,
73-
`[${this.secretAttr}][clicked] { pointer-events: none !important; }`,
73+
`[${this.secretAttr}][clicked] { cursor: crosshair !important; pointer-events: none !important; }`,
7474
].join('\n');
7575
self.addEventListener('scroll', this.onViewportChanged, { passive: true });
7676
self.addEventListener('resize', this.onViewportChanged, { passive: true });

‎src/js/scriptlets/epicker.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,7 @@ const pickerCSS = `
12751275
visibility: visible !important;
12761276
}
12771277
[${pickerUniqueId}][clicked] {
1278+
cursor: crosshair !important;
12781279
pointer-events: none !important;
12791280
}
12801281
`;

0 commit comments

Comments
 (0)