klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 296 forks source link

Drag & drop doesn't work in a story with > 6k passages #1508

Open hhrichards opened 7 months ago

hhrichards commented 7 months ago

Describe the bug.

I start to drag a passage with the mouse pressed. I release the mouse and click a second passage to drag. But it continues to drag the first passage, and not the second. This happens in documents with a large amount of passages where the UI is noticeably slower.

Steps to reproduce:

Try this on a document with over 6,000 passages. Drag and drop two passages that are in close proximity in a short amount of time.

Expected behavior:

The drag/drop functionality works as expected on a new project or one with a few hundred passages. But I'm experiencing this bug in a project with over 6,000 passages.

Additional context on this problem.

I'm working on a project with over 6,000 passages. Drag/drop functionality is quite slow. The bug is not present on a project with only 1,500 passages.

Twine version number

2.8.1

Does this problem occur with the web version of Twine or the desktop app?

Desktop app

What operating system does this problem occur on?

macOS

If this problem is occurring with the web version of Twine, what browser does it occur on?

None

Presubmission checklist

klembot commented 7 months ago

I think this is just performance issues with a story that size, period--I have a feeling that events are getting processed out of order, or getting skipped, which is why it's acting so weird. My one suggestion right now would be to look at ways to break up your story into smaller ones in Twine and then later recombine using a CLI tool.

Would you be OK with uploading an example story of this size for testing?

hhrichards commented 7 months ago

Yes of course. l've sent you a DM you on Patreon.