UniStuttgart-VISUS / damast

Code for the DH project "Dhimmis & Muslims – Analysing Multireligious Spaces in the Medieval Muslim World" (VolkswagenFoundation)
MIT License
10 stars 1 forks source link

Bar under lower graph of timeline only shows while changing selection #80

Closed tutebatti closed 2 years ago

tutebatti commented 2 years ago

When, first, using the lower graph (overview) of the Timeline to "zoom" inside the upper graph (main timeline), and then clicking and dragging inside the upper graph to filter, the bar below the lower graph only shows while clicking and dragging. (Note: In the screenshots, the cursor is not represented the way it is displayed while I took them. In the first screenshot, it was an arrow to modify the rectangle, in the second, it was a hand.)

grafik

grafik

mfranke93 commented 2 years ago

Yes, I see the issue. It happens without the first step, as well.

I am pretty sure I also already know what is happening. Behind the scenes, there are two steps happening: First, the filter arguments are sent from the UI to a separate process (WebWorker) that handles all dataset operations. This is done asynchronously to make the UI more snappy. The new data and the filters are then sent back to the UI in a second step. And it seems that in this second step, the UI does not redraw that bar.