Allow parent scrolling when using jquery ui .draggable()
Hi there! I have an annoying problem. I'm using jquery draggable on a set of divs and i'm restricting movement to the y-axis. My problem is that my parent div (using overflow-x:auto) cannot side scroll anymore. Do you have any ideas? Thanks.
- $(".openApp").draggable({axis:"y",
- drag: function(e, ui) {
- console.log(ui.position.top+" dd")
- if (ui.position.top > 0) {
- ui.position.top = 0
- }
- },
- scroll:true,
- stop:function(e,ui) {
- y2 = ui.position.top;
- //$(this).css("opacity",y2)
- if(y2< -($("body").height()/2)){
- $(".application-frame[data-openNumber='"+$(this).attr("data-openNumber")+"']").remove();
- this.style.height = $(this).height()+ 'px';
- $(this).addClass('hide-me');
- (function(_this) {
- setTimeout(function() {
- _this.remove();
- if($(".openApp").length == 0) {
- $("#openAppsPane").fadeOut();
- }
- }, 500);
- })(this);
- }
- }
- });