Перестало работать перемещение картинок удержанием левой кнопки мыши
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Скроллинг мышью</title>
<style type="text/css">
.scroll
{ position:absolute;
top:10px;
left:100px;
height: 100px;
overflow-x: auto;
width: 200px;
cursor: all-scroll;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script type="text/javascript">
window.onload = function () {
var scr = $(".scroll");
scr.mousedown(function (event) {
if(event.which == 3) {
event.stopPropagation();
var startX = this.scrollLeft + event.pageX;
var startY = this.scrollTop + event.pageY;
scr.mousemove(function () {
this.scrollLeft = startX - event.pageX;
this.scrollTop = startY - event.pageY;
return false;
});
}
});
$(window).mouseup(function () {
scr.off("mousemove");
});
}
</script>
</head>
<body>
<div class="scroll">
<a href="#"><img src="https://emn178.github.io/jquery-lazyload-any/samples/images/images/batman.png"/></a>
<a href="#"><img src="https://emn178.github.io/jquery-lazyload-any/samples/images/images/batman.png"/></a>
</div>
</body>
</html>