diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java index dee4ef16cb1..9a48e39abc8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java @@ -380,9 +380,15 @@ public DragSource(Control control, int style) { DragSource.this.drag(event); } } + if (event.type == SWT.ZoomChanged) { + if (!DragSource.this.isDisposed()) { + this.nativeZoom = event.detail; + } + } }; control.addListener(SWT.Dispose, controlListener); control.addListener(SWT.DragDetect, controlListener); + control.addListener(SWT.ZoomChanged, controlListener); this.addListener(SWT.Dispose, e -> DragSource.this.onDispose());