Currently, I am tackling a standard image "reveal" effect utilizing jQuery UI’s draggable() feature. However, I am facing significant challenges in ensuring its functionality within a responsive design:
http://codepen.io/ProfessorSamoff/pen/qEaNMM
While the reveal effect functions correctly at full screen and when the browser window size is decreased, the draggable handle fails to consistently snap to the correct position during resizing. (Although it works properly when manually dragged.)
In addition, you will notice that I have included some commented-out code that evaluates the browser window size:
if($(this).width() != width)
{
}
Although this logic successfully adjusts the draggable handle during window resizing, it disrupts the draggable functionality.
Despite experimenting with several suggestions on Stack Overflow related to draggable() and resizable(), none of them have provided a solution.