react-rnd icon indicating copy to clipboard operation
react-rnd copied to clipboard

Incorrect cursor when dragging on safari browser

Open amatelic opened this issue 3 years ago • 1 comments

Overview of the problem

I'm using react-rnd 10.3.5

My browser is: Safari Version 15.3 (17612.4.9.1.8)

Reproduced project

Code can be reproduced here https://codesandbox.io/s/y3997qply9

Description

On safari, the cursor is incorrect when dragging. Rather than having the move cursor, we have a text cursor.

Steps to Reproduce

  1. Open link
  2. Start dragging div.

Expected behavior

Should see the move/dragging cursor.

Actual behavior

Seeing the edit cursor.

amatelic avatar Mar 10 '22 12:03 amatelic

Just add e.preventDefault() on your drag handler. That fixes the issue.

briskajanis1 avatar Feb 17 '23 09:02 briskajanis1