SDA-4010 Prevent icons drag

This commit is contained in:
sbenmoussati 2022-12-13 12:01:40 +01:00 committed by Salah Benmoussati
parent 6728c9ca49
commit f275a28baa

View File

@ -321,7 +321,7 @@ const SnippingTool: React.FunctionComponent<ISnippingToolProps> = ({
onClick={usePen} onClick={usePen}
title={i18n.t('Pen', SNIPPING_TOOL_NAMESPACE)()} title={i18n.t('Pen', SNIPPING_TOOL_NAMESPACE)()}
> >
<img src={PenIcon} /> <img src={PenIcon} draggable={false} />
</button> </button>
<button <button
data-testid='highlight-button' data-testid='highlight-button'
@ -330,7 +330,7 @@ const SnippingTool: React.FunctionComponent<ISnippingToolProps> = ({
onClick={useHighlight} onClick={useHighlight}
title={i18n.t('Highlight', SNIPPING_TOOL_NAMESPACE)()} title={i18n.t('Highlight', SNIPPING_TOOL_NAMESPACE)()}
> >
<img src={HighlightIcon} /> <img src={HighlightIcon} draggable={false} />
</button> </button>
<button <button
data-testid='erase-button' data-testid='erase-button'
@ -339,7 +339,7 @@ const SnippingTool: React.FunctionComponent<ISnippingToolProps> = ({
onClick={useEraser} onClick={useEraser}
title={i18n.t('Erase', SNIPPING_TOOL_NAMESPACE)()} title={i18n.t('Erase', SNIPPING_TOOL_NAMESPACE)()}
> >
<img src={EraseIcon} /> <img src={EraseIcon} draggable={false} />
</button> </button>
</div> </div>
<div className='clear-actions'> <div className='clear-actions'>