只需调用 .trigger("mousedown"); 不起作用。
scrollPane_Y.draggable({
axis: "y",
stop: function (event, ui) {
/*
i get triggered when the containment is hit
so if a user hits the containment and then
goes in the other direction nothing happens.
*/
scrollPane_Y.trigger("mousedown"); // doesnt work
scrollPane_Y.mousedown(function (e) { // from third link. doesnt work
scrollPane_Y.trigger(e);
});
},
containment: [0, min_scrollPane_Y, 0, max_scrollPane_Y]
});