Skip to content

Commit ef5c718

Browse files
committed
fix: use error param
1 parent 26c25b5 commit ef5c718

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/veui/test/unit/specs/directives/longpress.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const DEFAULT_TIMEOUT = config.get('longpress.timeout')
77
const DEFAULT_REPEAT_INTERVAL = config.get('longpress.repeatInterval')
88

99
function isAbout (val, base, error = 80) {
10-
return val >= base && val < base + 100
10+
return val >= base && val < base + error
1111
}
1212

1313
describe('directives/longpress', () => {

0 commit comments

Comments
 (0)