minimap icon indicating copy to clipboard operation
minimap copied to clipboard

Absolute mode prevents mouse interaction with horizontal scroll bar

Open polarathene opened this issue 10 years ago • 3 comments

Pasted some CSS which had a long sourcemap comment line, as I don't have wrapping enabled this resulted in a short horizontal scroll bar that was positioned in the minmap area. The scrollbar did not pick up on mouse clicks until I disabled absolute mode.

polarathene avatar Sep 02 '15 07:09 polarathene

Hmm, I'm not sure to understand what's going on, can you attach a screenshot of the issue you face?

abe33 avatar Sep 08 '15 12:09 abe33

As described, when editor does not use wrap mode, as line length increases horizontal scroll bar will get smaller size. When minimap setting absolute mode is true, this prevents interaction with scroll bar when under minimap area.

It's really unlikely to be a common problem, I don't think anyone will create such a long line intentionally. This bug is only a problem with generated code like source maps. Have attached an image if it helps.

minimap_absolute_bug

In this case, you can click/interact with horizontal scroll bar that is not in minimap area, the bit that is will not respond, so if the size gets too small and is in minimap zone (like when I pasted my sourcemap) then cannot use scrollbar.

polarathene avatar Sep 08 '15 15:09 polarathene

Oh, ok, I was thinking about something else (like a scrollbar appearing in the minimap).

I'll try to see if plagying with z-index helps in this case. Stay tuned.

abe33 avatar Sep 09 '15 09:09 abe33