by masklinn · 8y ago · 0 comments
That works out of the box, it's a native HTML/browser feature.
Why do you pass location.hash to jQuery?
In scenarios where you can’t redesign the html structure or css to give the element more padding, you pretty much have to use javascript to get the window-x position of the element.