Make cursor stay as a closed hand when dragging blocks around in the drag surface. Do this by applying the same style to text elements in the drag surface that we do in the main svg. (#805)

This commit is contained in:
picklesrus
2017-01-05 15:39:06 -08:00
committed by GitHub
parent 3cd62050a2
commit 25ed815320

View File

@@ -312,7 +312,7 @@ Blockly.Css.CONTENT = [
Don't allow users to select text. It gets annoying when trying to
drag a block and selected text moves instead.
*/
'.blocklySvg text {',
'.blocklySvg text, .blocklyBlockDragSurface text {',
'user-select: none;',
'-moz-user-select: none;',
'-webkit-user-select: none;',