@tuily/react-mobile-picker-scroll
Advanced tools
Comparing version 0.2.18 to 0.2.19
{ | ||
"name": "@tuily/react-mobile-picker-scroll", | ||
"version": "0.2.18", | ||
"version": "0.2.19", | ||
"description": "An iOS like select box component for React, with scroll wheel and keyboard support", | ||
@@ -5,0 +5,0 @@ "main": "lib/react-mobile-picker.js", |
@@ -205,3 +205,3 @@ import React, { Component, WheelEvent } from 'react'; | ||
if (timeDiff && !isMoving) { | ||
timeDiff = timeDiff > 1000 ? 200 : timeDiff; | ||
timeDiff = timeDiff > 2000 ? timeDiff / 2 : timeDiff; | ||
style.transitionDuration = `${timeDiff}ms`; | ||
@@ -208,0 +208,0 @@ } |
27511