ProseMirror / prosemirror

The ProseMirror WYSIWYM editor
http://prosemirror.net/
MIT License
7.61k stars 336 forks source link

safari doesn't support auto scroll while dragging #1339

Closed percy507 closed 1 year ago

percy507 commented 1 year ago

Hi @marijnh,

Recently I find a problem in safari, it does't support auto scroll while dragging. (https://discussions.apple.com/thread/252081922) Chrome supports, but not smooth enough.

Then I write some script to fix this. Here are demos. (safari browser v15.0)

If you want, I can make a PR and insert the script into here.

marijnh commented 1 year ago

Sure, I'd be interested in taking a look at a PR.

percy507 commented 1 year ago

Here is it. https://github.com/ProseMirror/prosemirror-view/pull/148

marijnh commented 1 year ago

I've decided to not include this in the core library (but one could create a plugin that adds it).

percy507 commented 1 year ago

Release a package just now🥳. https://github.com/percy507/auto-scroll-while-dragging