react-input-range icon indicating copy to clipboard operation
react-input-range copied to clipboard

preventDefault inside passive event listener

Open delorge opened this issue 8 years ago • 3 comments

Hello. using this component in latest Chrome causes following warning:

Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080

Stack trace:

preventDefault	@	SyntheticEvent.js:32
handleTrackMouseDown	@	input-range.js:560
handleMouseDown	@	track.js:146
handleTouchStart	@	track.js:159
ReactErrorUtils.invokeGuardedCallback	@	ReactErrorUtils.js:27
executeDispatch	@	EventPluginUtils.js:20
executeDispatchesInOrder	@	EventPluginUtils.js:23
executeDispatchesAndRelease	@	EventPluginHub.js:20
executeDispatchesAndReleaseTopLevel	@	EventPluginHub.js:20
forEachAccumulated	@	forEachAccumulated.js:16
processEventQueue	@	EventPluginHub.js:91
runEventQueueInBatch	@	ReactEventEmitterMixin.js:9
handleTopLevel	@	ReactEventEmitterMixin.js:12
handleTopLevelImpl	@	ReactEventListener.js:21
perform	@	Transaction.js:99
batchedUpdates	@	ReactDefaultBatchingStrategy.js:13
batchedUpdates	@	ReactUpdates.js:16
dispatchEvent	@	ReactEventListener.js:41

UPD: one of possible solutions is to add approptiate CSS rule to .input-range__slider

UPD2: Perhaps, touch-action: pan-x; is suitable in this case, since vertical positioning is not supported

delorge avatar Apr 19 '17 09:04 delorge

Also have this issue, anyone have a solution ?

ost-ing avatar Oct 10 '18 15:10 ost-ing

not yet

ysaini4 avatar May 08 '19 10:05 ysaini4

We are still encountering this issue.

zamirkhan avatar Jul 15 '20 12:07 zamirkhan