core icon indicating copy to clipboard operation
core copied to clipboard

Behavior Change in Chrome 5X (Don't know exactly which version) breaks dragging protection

Open osbert-messerfs opened this issue 9 years ago • 2 comments

The following won't work in Chrome latest stable build https://github.com/openfin/fincanvas/blob/db990dae9b1ca5c34313b2f6311651a16677eb45/src/index.js#L610

Consider the following statement is true in latest Chrome:

document.body.style.cssText = '-webkit-user-select: none'; document.body.style.cssText === 'user-select: none;'

This result in once a drag action is detected in fincanvas in hypergrid, users will no longer be able to select any text even after the dragging ended.

Ref: https://github.com/openfin/fincanvas/issues/9

osbert-messerfs avatar Feb 06 '17 01:02 osbert-messerfs

@osbert-messerfs Thanks for moving the conversation here. I'll follow up with you this week

Dwaynekj avatar Feb 06 '17 15:02 Dwaynekj

P.S. I think probably replace -webkit-user-select with user-select should get it working, or doing it in a more non-hacking way such as document.body.style.userSelect = 'none', but better leave with you guys to decide, as there might be browser compatibility considerations that I might haven't thought about.

osbert-messerfs avatar Feb 08 '17 01:02 osbert-messerfs