Fixing event propagation on resizable.js when using iframes
This commit is contained in:
parent
3474fee906
commit
f140a64f60
@ -48,6 +48,11 @@ OHIF.ui.makeDraggable = function(element) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Stop the dragging if the element is being resized
|
||||
if ($(element).hasClass('resizing')) {
|
||||
return;
|
||||
}
|
||||
|
||||
var elementTop = parseFloat(element.offset().top),
|
||||
elementLeft = parseFloat(element.offset().left);
|
||||
|
||||
|
||||
@ -70,8 +70,6 @@ class Resizable {
|
||||
this.initResizeHandler = event => {
|
||||
const $window = $(window);
|
||||
|
||||
event.stopPropagation();
|
||||
|
||||
this.width = this.initialWidth = this.$element.width();
|
||||
this.height = this.initialHeight = this.$element.height();
|
||||
this.startWidth = this.width;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user