We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 521c98c + 846032b commit e1c2c78Copy full SHA for e1c2c78
components/brave_rewards/resources/rewards_panel/components/grant_captcha_challenge.tsx
@@ -39,6 +39,16 @@ export function GrantCaptchaChallenge (props: Props) {
39
x: (rect.width / 2) - (event.clientX - rect.left),
40
y: (rect.height / 2) - (event.clientY - rect.top)
41
})
42
+
43
+ // Work around Linux-specific upstream bug by explicitly setting the drag
44
+ // image offset when initiating the drag
45
+ // See https://bugs.chromium.org/p/chromium/issues/detail?id=1297990
46
+ if (window.navigator.userAgent.includes('Linux') && devicePixelRatio > 1) {
47
+ event.dataTransfer.setDragImage(
48
+ target,
49
+ event.clientX - rect.left,
50
+ event.clientY - rect.top)
51
+ }
52
}
53
54
function onDragOver (event: React.DragEvent) {
0 commit comments