Explorar o código

prevent dragging of snapshot images

Alexander Rose hai 1 ano
pai
achega
557bf63b55
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-plugin-ui/state/snapshots.tsx

+ 1 - 1
src/mol-plugin-ui/state/snapshots.tsx

@@ -187,7 +187,7 @@ export class LocalStateSnapshotList extends PluginUIComponent<{}, {}> {
             if (image) {
                 items.push(<li key={`${e!.snapshot.id}-image`} className='msp-state-image-row'>
                     <Button data-id={e!.snapshot.id} onClick={this.apply}>
-                        <img src={URL.createObjectURL(image)}/>
+                        <img draggable={false} src={URL.createObjectURL(image)}/>
                     </Button>
                 </li>);
             }