I'm facing an issue with a large div element that has specific configurations:
<div class="divImagem" style="position:relative; width: 1424px; height: 790px; overflow:hidden;">
Due to its size, this div is causing a horizontal scroll bar to appear within the browser window. The scroll bar pertains only to this particular div, not the entire page.
My question is how can I determine the amount of horizontal scrolling that has occurred within the div? I tried using the following code:
$("div.divImagem").scrollLeft();
However, it always returns 0 regardless of how much the div has been scrolled horizontally. Can anyone help me resolve this issue?