I have implemented a pure CSS snap scroll feature and now I need to determine the position of an element in relation to the viewport once the user stops dragging. However, I prefer not to rely on any complex libraries as I do not require any actual movement or dropping functionality. All I want is to trigger an event upon mouseup. The issue I am facing is that the mouseup event does not get triggered if I move my cursor while holding down the left mouse button. For your reference, I am working with Vu3.
<span id="handle" class="card-handle" onmouseup="myMethod"></span>
Seeking a simple solution since I do not need extensive dragging capabilities for my project.