Sublime Forum

Sublime freezing sometimes, clicking tab then moves it around

#1

Hey,

sometimes sublime freezes for like 2 seconds. This is caused by Mediawiker when I edit a page and save it so the plugin POSTs this to the server. Which is fine, no problem. Gotta wait for 2 secs.

But when this happens I often click a tab to switch a file so when Sublime is done with its work, that one should be opened. But instead if i move the mouse cursor after clicking the tab gets pulled out.

It feels like Sublime gets the mouse down event but not the mouse up event in time.

This is not about finding a solution to the freeze, but I think sublime could handle the events a little bit differently. So that dragging tabs around works but if there is a delay in event handling this mess does not happen.

Oh and as an extra: When dragging tabs around, if I drag them to the side, the tab bar scrolls like hell, even if I am already in another “column” (2 column view). I would have to drag it up or down out of the tab list and then to the other column.

Would it be possible to modify Sublime so that if the tab gets dragged out of the current “view” (column, whatever) it doesn’t scroll in the tablist anymore?

0 Likes

#2

That frst problem sounds like a potential problem with the plugin using on_post_save instead of on_post_save_async; the former blocks until the callback completes while the later runs in a background in a separate thread. A symptom of that would be handling all of the events that happened all at once.

That’s not to say that the handling it’s doing on the events might also have a problem that’s only exposed in that kind of situation, though.

I’m not familiar with the plugin so I don’t know if a simple tweak like changing the event handler to the async version is safe or not as a test, though.

0 Likes

#3

Asking/reporting it on the plugin issue tracker could be more effective, as the plugin author itself may fix this. https://github.com/tosher/Mediawiker/issues

0 Likes