I have a menu that opens based on the X
and Y
coordinates of the click
, but when it was opened at the ends it ended up extrapolating the layout, I set it up, but when the scrollbar
side is active it finishes extrapolating some pixels (probably in% w / o% as well), because% w /% does not take the difference of scroll size, eg ...
when scroll is not active height
When scrolling is active window.innerWidth
In other words, depending on the platform, the average scroll can have a width of up to 15 / 20px, I need to detect when the Scrollbar is active and when I activate its size to subtract this difference,