Skip to content

[PRO]: Performance Issues with Grammarly due to Drag Handle Extension #5959

Open
@andrewhoangg

Description

Affected Packages

@tiptap-pro/extension-drag-handle

Version(s)

latest

Description of the Bug

When the Grammarly extension is enabled on our browser, the editor lags a lot when scrolling up and down after Grammarly scans the document.

The performance issues originate from Tiptap's drag-handle extension, which uses elementsFromPoint, which is extremely slow. Removing it fixes the lag spikes.

image

Browser Used

Chrome

Code Example (Preferred)

https://templates.tiptap.dev/fhBkrGQCqH

Expected Behavior

No lag when i scroll up and down in the editor with Grammarly suggestions active

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Assignees

No one assigned

    Labels

    Category: ProThe issue or pull request is related to the pro packages of Tiptap.Type: BugThe issue or pullrequest is related to a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions