@nutui/nutui-react 1.4.9 → 1.4.10-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/Form.js +22 -6
- package/dist/esm/formitem-4b58943b.js +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +23 -51
- package/dist/nutui.react.umd.js +23 -51
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/package.json +3 -3
package/dist/esm/Form.js
CHANGED
|
@@ -31,6 +31,10 @@ function FormStore() {
|
|
|
31
31
|
_defineProperty(this, "fieldEntities", []);
|
|
32
32
|
_defineProperty(this, "callbacks", {});
|
|
33
33
|
_defineProperty(this, "errList", []);
|
|
34
|
+
/**
|
|
35
|
+
* 注册组件实例
|
|
36
|
+
* @param field
|
|
37
|
+
*/
|
|
34
38
|
_defineProperty(this, "registerField", function (field) {
|
|
35
39
|
_this.fieldEntities.push(field);
|
|
36
40
|
return function () {
|
|
@@ -43,6 +47,10 @@ function FormStore() {
|
|
|
43
47
|
_defineProperty(this, "getFieldValue", function (name) {
|
|
44
48
|
return _this.store[name];
|
|
45
49
|
});
|
|
50
|
+
/**
|
|
51
|
+
* 存储组件数据
|
|
52
|
+
* @param newStore { [name]: newValue }
|
|
53
|
+
*/
|
|
46
54
|
_defineProperty(this, "setFieldsValue", function (newStore) {
|
|
47
55
|
_this.store = _objectSpread(_objectSpread({}, _this.store), newStore);
|
|
48
56
|
_this.fieldEntities.forEach(function (enetity) {
|
|
@@ -54,6 +62,19 @@ function FormStore() {
|
|
|
54
62
|
});
|
|
55
63
|
});
|
|
56
64
|
});
|
|
65
|
+
/**
|
|
66
|
+
* 表单校验
|
|
67
|
+
* rules: { required: true, message: '' }
|
|
68
|
+
* descriptor: {
|
|
69
|
+
* username: {
|
|
70
|
+
* type: 'string',
|
|
71
|
+
* required: true,
|
|
72
|
+
* validator: (rule, value) => {
|
|
73
|
+
* return /^[a-zA-Z0-9]+$/.test(value)
|
|
74
|
+
* },
|
|
75
|
+
* },
|
|
76
|
+
* }
|
|
77
|
+
*/
|
|
57
78
|
_defineProperty(this, "validate", function () {
|
|
58
79
|
var err = [];
|
|
59
80
|
_this.errList.length = 0;
|
|
@@ -124,12 +145,7 @@ function FormStore() {
|
|
|
124
145
|
onFinish: function onFinish(value) {},
|
|
125
146
|
onFinishFailed: function onFinishFailed() {}
|
|
126
147
|
};
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* 注册组件实例
|
|
130
|
-
* @param field
|
|
131
|
-
*/);
|
|
132
|
-
|
|
148
|
+
});
|
|
133
149
|
var useForm = function useForm(form) {
|
|
134
150
|
var formRef = useRef();
|
|
135
151
|
if (!formRef.current) {
|
|
@@ -40,6 +40,7 @@ var FormItem = /*#__PURE__*/function (_React__default$Compo) {
|
|
|
40
40
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
41
41
|
_defineProperty(_assertThisInitialized(_this), "cancelRegister", void 0);
|
|
42
42
|
_defineProperty(_assertThisInitialized(_this), "isInitialValue", false);
|
|
43
|
+
// children添加value属性和onChange事件
|
|
43
44
|
_defineProperty(_assertThisInitialized(_this), "getControlled", function (children) {
|
|
44
45
|
var _children$props;
|
|
45
46
|
var _this$context = _this.context,
|
|
@@ -131,7 +132,6 @@ var FormItem = /*#__PURE__*/function (_React__default$Compo) {
|
|
|
131
132
|
this.cancelRegister();
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
// children添加value属性和onChange事件
|
|
135
135
|
}, {
|
|
136
136
|
key: "render",
|
|
137
137
|
value: function render() {
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v1.4.
|
|
2
|
+
* @nutui/nutui-react v1.4.10-beta.0 Thu Mar 02 2023 19:14:03 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -2351,24 +2351,7 @@ function computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) {
|
|
|
2351
2351
|
const [[X0, X1], [Y0, Y1]] = bounds;
|
|
2352
2352
|
return [rubberbandIfOutOfBounds$1(Vx, X0, X1, Rx), rubberbandIfOutOfBounds$1(Vy, Y0, Y1, Ry)];
|
|
2353
2353
|
}
|
|
2354
|
-
function _toPrimitive(input, hint) {
|
|
2355
|
-
if (typeof input !== "object" || input === null)
|
|
2356
|
-
return input;
|
|
2357
|
-
var prim = input[Symbol.toPrimitive];
|
|
2358
|
-
if (prim !== void 0) {
|
|
2359
|
-
var res = prim.call(input, hint || "default");
|
|
2360
|
-
if (typeof res !== "object")
|
|
2361
|
-
return res;
|
|
2362
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2363
|
-
}
|
|
2364
|
-
return (hint === "string" ? String : Number)(input);
|
|
2365
|
-
}
|
|
2366
|
-
function _toPropertyKey(arg) {
|
|
2367
|
-
var key = _toPrimitive(arg, "string");
|
|
2368
|
-
return typeof key === "symbol" ? key : String(key);
|
|
2369
|
-
}
|
|
2370
2354
|
function _defineProperty(obj, key, value) {
|
|
2371
|
-
key = _toPropertyKey(key);
|
|
2372
2355
|
if (key in obj) {
|
|
2373
2356
|
Object.defineProperty(obj, key, {
|
|
2374
2357
|
value,
|
|
@@ -2910,11 +2893,12 @@ const coordinatesConfigResolver = _objectSpread2(_objectSpread2({}, commonConfig
|
|
|
2910
2893
|
return [[left, right], [top, bottom]];
|
|
2911
2894
|
}
|
|
2912
2895
|
});
|
|
2896
|
+
const DISPLACEMENT = 10;
|
|
2913
2897
|
const KEYS_DELTA_MAP = {
|
|
2914
|
-
ArrowRight: (
|
|
2915
|
-
ArrowLeft: (
|
|
2916
|
-
ArrowUp: (
|
|
2917
|
-
ArrowDown: (
|
|
2898
|
+
ArrowRight: (factor = 1) => [DISPLACEMENT * factor, 0],
|
|
2899
|
+
ArrowLeft: (factor = 1) => [-DISPLACEMENT * factor, 0],
|
|
2900
|
+
ArrowUp: (factor = 1) => [0, -DISPLACEMENT * factor],
|
|
2901
|
+
ArrowDown: (factor = 1) => [0, DISPLACEMENT * factor]
|
|
2918
2902
|
};
|
|
2919
2903
|
class DragEngine extends CoordinatesEngine {
|
|
2920
2904
|
constructor(...args) {
|
|
@@ -3138,7 +3122,7 @@ class DragEngine extends CoordinatesEngine {
|
|
|
3138
3122
|
const state = this.state;
|
|
3139
3123
|
const factor = event.shiftKey ? 10 : event.altKey ? 0.1 : 1;
|
|
3140
3124
|
this.start(event);
|
|
3141
|
-
state._delta = deltaFn(
|
|
3125
|
+
state._delta = deltaFn(factor);
|
|
3142
3126
|
state._keyboardActive = true;
|
|
3143
3127
|
V.addTo(state._movement, state._delta);
|
|
3144
3128
|
this.compute(event);
|
|
@@ -3210,7 +3194,6 @@ const DEFAULT_DRAG_DELAY = 180;
|
|
|
3210
3194
|
const DEFAULT_SWIPE_VELOCITY = 0.5;
|
|
3211
3195
|
const DEFAULT_SWIPE_DISTANCE = 50;
|
|
3212
3196
|
const DEFAULT_SWIPE_DURATION = 250;
|
|
3213
|
-
const DEFAULT_KEYBOARD_DISPLACEMENT = 10;
|
|
3214
3197
|
const DEFAULT_DRAG_AXIS_THRESHOLD = {
|
|
3215
3198
|
mouse: 0,
|
|
3216
3199
|
touch: 0,
|
|
@@ -3246,14 +3229,15 @@ const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigRe
|
|
|
3246
3229
|
pointerCapture(_v, _k, {
|
|
3247
3230
|
pointer: {
|
|
3248
3231
|
capture = true,
|
|
3249
|
-
buttons = 1
|
|
3250
|
-
keys = true
|
|
3232
|
+
buttons = 1
|
|
3251
3233
|
} = {}
|
|
3252
3234
|
}) {
|
|
3253
3235
|
this.pointerButtons = buttons;
|
|
3254
|
-
this.keys = keys;
|
|
3255
3236
|
return !this.pointerLock && this.device === "pointer" && capture;
|
|
3256
3237
|
},
|
|
3238
|
+
keys(value = true) {
|
|
3239
|
+
return value;
|
|
3240
|
+
},
|
|
3257
3241
|
threshold(value, _k, {
|
|
3258
3242
|
filterTaps = false,
|
|
3259
3243
|
tapsThreshold = 3,
|
|
@@ -3289,22 +3273,8 @@ const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigRe
|
|
|
3289
3273
|
if (!value)
|
|
3290
3274
|
return DEFAULT_DRAG_AXIS_THRESHOLD;
|
|
3291
3275
|
return _objectSpread2(_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
|
|
3292
|
-
},
|
|
3293
|
-
keyboardDisplacement(value = DEFAULT_KEYBOARD_DISPLACEMENT) {
|
|
3294
|
-
return value;
|
|
3295
3276
|
}
|
|
3296
3277
|
});
|
|
3297
|
-
function clampStateInternalMovementToBounds(state) {
|
|
3298
|
-
const [ox, oy] = state.overflow;
|
|
3299
|
-
const [dx, dy] = state._delta;
|
|
3300
|
-
const [dirx, diry] = state._direction;
|
|
3301
|
-
if (ox < 0 && dx > 0 && dirx < 0 || ox > 0 && dx < 0 && dirx > 0) {
|
|
3302
|
-
state._movement[0] = state._movementBound[0];
|
|
3303
|
-
}
|
|
3304
|
-
if (oy < 0 && dy > 0 && diry < 0 || oy > 0 && dy < 0 && diry > 0) {
|
|
3305
|
-
state._movement[1] = state._movementBound[1];
|
|
3306
|
-
}
|
|
3307
|
-
}
|
|
3308
3278
|
const SCALE_ANGLE_RATIO_INTENT_DEG = 30;
|
|
3309
3279
|
const PINCH_WHEEL_RATIO = 100;
|
|
3310
3280
|
class PinchEngine extends Engine {
|
|
@@ -3534,7 +3504,6 @@ class PinchEngine extends Engine {
|
|
|
3534
3504
|
const state = this.state;
|
|
3535
3505
|
state._delta = [-wheelValues(event)[1] / PINCH_WHEEL_RATIO * state.offset[0], 0];
|
|
3536
3506
|
V.addTo(state._movement, state._delta);
|
|
3537
|
-
clampStateInternalMovementToBounds(state);
|
|
3538
3507
|
this.state.origin = [event.clientX, event.clientY];
|
|
3539
3508
|
this.compute(event);
|
|
3540
3509
|
this.emit();
|
|
@@ -3554,11 +3523,9 @@ class PinchEngine extends Engine {
|
|
|
3554
3523
|
bindFunction(device, "end", this[device + "End"].bind(this));
|
|
3555
3524
|
bindFunction(device, "cancel", this[device + "End"].bind(this));
|
|
3556
3525
|
}
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
});
|
|
3561
|
-
}
|
|
3526
|
+
bindFunction("wheel", "", this.wheel.bind(this), {
|
|
3527
|
+
passive: false
|
|
3528
|
+
});
|
|
3562
3529
|
}
|
|
3563
3530
|
}
|
|
3564
3531
|
const pinchConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
|
|
@@ -3611,9 +3578,6 @@ const pinchConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolv
|
|
|
3611
3578
|
if (value === void 0)
|
|
3612
3579
|
return "ctrlKey";
|
|
3613
3580
|
return value;
|
|
3614
|
-
},
|
|
3615
|
-
pinchOnWheel(value = true) {
|
|
3616
|
-
return value;
|
|
3617
3581
|
}
|
|
3618
3582
|
});
|
|
3619
3583
|
class MoveEngine extends CoordinatesEngine {
|
|
@@ -3712,7 +3676,15 @@ class WheelEngine extends CoordinatesEngine {
|
|
|
3712
3676
|
const state = this.state;
|
|
3713
3677
|
state._delta = wheelValues(event);
|
|
3714
3678
|
V.addTo(state._movement, state._delta);
|
|
3715
|
-
|
|
3679
|
+
const [ox, oy] = state.overflow;
|
|
3680
|
+
const [dx, dy] = state._delta;
|
|
3681
|
+
const [dirx, diry] = state._direction;
|
|
3682
|
+
if (ox < 0 && dx > 0 && dirx < 0 || ox > 0 && dx < 0 && dirx > 0) {
|
|
3683
|
+
state._movement[0] = state._movementBound[0];
|
|
3684
|
+
}
|
|
3685
|
+
if (oy < 0 && dy > 0 && diry < 0 || oy > 0 && dy < 0 && diry > 0) {
|
|
3686
|
+
state._movement[1] = state._movementBound[1];
|
|
3687
|
+
}
|
|
3716
3688
|
this.compute(event);
|
|
3717
3689
|
this.emit();
|
|
3718
3690
|
}
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v1.4.
|
|
2
|
+
* @nutui/nutui-react v1.4.10-beta.0 Thu Mar 02 2023 19:14:03 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -2378,24 +2378,7 @@
|
|
|
2378
2378
|
const [[X0, X1], [Y0, Y1]] = bounds;
|
|
2379
2379
|
return [rubberbandIfOutOfBounds$1(Vx, X0, X1, Rx), rubberbandIfOutOfBounds$1(Vy, Y0, Y1, Ry)];
|
|
2380
2380
|
}
|
|
2381
|
-
function _toPrimitive(input, hint) {
|
|
2382
|
-
if (typeof input !== "object" || input === null)
|
|
2383
|
-
return input;
|
|
2384
|
-
var prim = input[Symbol.toPrimitive];
|
|
2385
|
-
if (prim !== void 0) {
|
|
2386
|
-
var res = prim.call(input, hint || "default");
|
|
2387
|
-
if (typeof res !== "object")
|
|
2388
|
-
return res;
|
|
2389
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2390
|
-
}
|
|
2391
|
-
return (hint === "string" ? String : Number)(input);
|
|
2392
|
-
}
|
|
2393
|
-
function _toPropertyKey(arg) {
|
|
2394
|
-
var key = _toPrimitive(arg, "string");
|
|
2395
|
-
return typeof key === "symbol" ? key : String(key);
|
|
2396
|
-
}
|
|
2397
2381
|
function _defineProperty(obj, key, value) {
|
|
2398
|
-
key = _toPropertyKey(key);
|
|
2399
2382
|
if (key in obj) {
|
|
2400
2383
|
Object.defineProperty(obj, key, {
|
|
2401
2384
|
value,
|
|
@@ -2937,11 +2920,12 @@
|
|
|
2937
2920
|
return [[left, right], [top, bottom]];
|
|
2938
2921
|
}
|
|
2939
2922
|
});
|
|
2923
|
+
const DISPLACEMENT = 10;
|
|
2940
2924
|
const KEYS_DELTA_MAP = {
|
|
2941
|
-
ArrowRight: (
|
|
2942
|
-
ArrowLeft: (
|
|
2943
|
-
ArrowUp: (
|
|
2944
|
-
ArrowDown: (
|
|
2925
|
+
ArrowRight: (factor = 1) => [DISPLACEMENT * factor, 0],
|
|
2926
|
+
ArrowLeft: (factor = 1) => [-DISPLACEMENT * factor, 0],
|
|
2927
|
+
ArrowUp: (factor = 1) => [0, -DISPLACEMENT * factor],
|
|
2928
|
+
ArrowDown: (factor = 1) => [0, DISPLACEMENT * factor]
|
|
2945
2929
|
};
|
|
2946
2930
|
class DragEngine extends CoordinatesEngine {
|
|
2947
2931
|
constructor(...args) {
|
|
@@ -3165,7 +3149,7 @@
|
|
|
3165
3149
|
const state = this.state;
|
|
3166
3150
|
const factor = event.shiftKey ? 10 : event.altKey ? 0.1 : 1;
|
|
3167
3151
|
this.start(event);
|
|
3168
|
-
state._delta = deltaFn(
|
|
3152
|
+
state._delta = deltaFn(factor);
|
|
3169
3153
|
state._keyboardActive = true;
|
|
3170
3154
|
V.addTo(state._movement, state._delta);
|
|
3171
3155
|
this.compute(event);
|
|
@@ -3237,7 +3221,6 @@
|
|
|
3237
3221
|
const DEFAULT_SWIPE_VELOCITY = 0.5;
|
|
3238
3222
|
const DEFAULT_SWIPE_DISTANCE = 50;
|
|
3239
3223
|
const DEFAULT_SWIPE_DURATION = 250;
|
|
3240
|
-
const DEFAULT_KEYBOARD_DISPLACEMENT = 10;
|
|
3241
3224
|
const DEFAULT_DRAG_AXIS_THRESHOLD = {
|
|
3242
3225
|
mouse: 0,
|
|
3243
3226
|
touch: 0,
|
|
@@ -3273,14 +3256,15 @@
|
|
|
3273
3256
|
pointerCapture(_v, _k, {
|
|
3274
3257
|
pointer: {
|
|
3275
3258
|
capture = true,
|
|
3276
|
-
buttons = 1
|
|
3277
|
-
keys = true
|
|
3259
|
+
buttons = 1
|
|
3278
3260
|
} = {}
|
|
3279
3261
|
}) {
|
|
3280
3262
|
this.pointerButtons = buttons;
|
|
3281
|
-
this.keys = keys;
|
|
3282
3263
|
return !this.pointerLock && this.device === "pointer" && capture;
|
|
3283
3264
|
},
|
|
3265
|
+
keys(value = true) {
|
|
3266
|
+
return value;
|
|
3267
|
+
},
|
|
3284
3268
|
threshold(value, _k, {
|
|
3285
3269
|
filterTaps = false,
|
|
3286
3270
|
tapsThreshold = 3,
|
|
@@ -3316,22 +3300,8 @@
|
|
|
3316
3300
|
if (!value)
|
|
3317
3301
|
return DEFAULT_DRAG_AXIS_THRESHOLD;
|
|
3318
3302
|
return _objectSpread2(_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
|
|
3319
|
-
},
|
|
3320
|
-
keyboardDisplacement(value = DEFAULT_KEYBOARD_DISPLACEMENT) {
|
|
3321
|
-
return value;
|
|
3322
3303
|
}
|
|
3323
3304
|
});
|
|
3324
|
-
function clampStateInternalMovementToBounds(state) {
|
|
3325
|
-
const [ox, oy] = state.overflow;
|
|
3326
|
-
const [dx, dy] = state._delta;
|
|
3327
|
-
const [dirx, diry] = state._direction;
|
|
3328
|
-
if (ox < 0 && dx > 0 && dirx < 0 || ox > 0 && dx < 0 && dirx > 0) {
|
|
3329
|
-
state._movement[0] = state._movementBound[0];
|
|
3330
|
-
}
|
|
3331
|
-
if (oy < 0 && dy > 0 && diry < 0 || oy > 0 && dy < 0 && diry > 0) {
|
|
3332
|
-
state._movement[1] = state._movementBound[1];
|
|
3333
|
-
}
|
|
3334
|
-
}
|
|
3335
3305
|
const SCALE_ANGLE_RATIO_INTENT_DEG = 30;
|
|
3336
3306
|
const PINCH_WHEEL_RATIO = 100;
|
|
3337
3307
|
class PinchEngine extends Engine {
|
|
@@ -3561,7 +3531,6 @@
|
|
|
3561
3531
|
const state = this.state;
|
|
3562
3532
|
state._delta = [-wheelValues(event)[1] / PINCH_WHEEL_RATIO * state.offset[0], 0];
|
|
3563
3533
|
V.addTo(state._movement, state._delta);
|
|
3564
|
-
clampStateInternalMovementToBounds(state);
|
|
3565
3534
|
this.state.origin = [event.clientX, event.clientY];
|
|
3566
3535
|
this.compute(event);
|
|
3567
3536
|
this.emit();
|
|
@@ -3581,11 +3550,9 @@
|
|
|
3581
3550
|
bindFunction(device, "end", this[device + "End"].bind(this));
|
|
3582
3551
|
bindFunction(device, "cancel", this[device + "End"].bind(this));
|
|
3583
3552
|
}
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
});
|
|
3588
|
-
}
|
|
3553
|
+
bindFunction("wheel", "", this.wheel.bind(this), {
|
|
3554
|
+
passive: false
|
|
3555
|
+
});
|
|
3589
3556
|
}
|
|
3590
3557
|
}
|
|
3591
3558
|
const pinchConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
|
|
@@ -3638,9 +3605,6 @@
|
|
|
3638
3605
|
if (value === void 0)
|
|
3639
3606
|
return "ctrlKey";
|
|
3640
3607
|
return value;
|
|
3641
|
-
},
|
|
3642
|
-
pinchOnWheel(value = true) {
|
|
3643
|
-
return value;
|
|
3644
3608
|
}
|
|
3645
3609
|
});
|
|
3646
3610
|
class MoveEngine extends CoordinatesEngine {
|
|
@@ -3739,7 +3703,15 @@
|
|
|
3739
3703
|
const state = this.state;
|
|
3740
3704
|
state._delta = wheelValues(event);
|
|
3741
3705
|
V.addTo(state._movement, state._delta);
|
|
3742
|
-
|
|
3706
|
+
const [ox, oy] = state.overflow;
|
|
3707
|
+
const [dx, dy] = state._delta;
|
|
3708
|
+
const [dirx, diry] = state._direction;
|
|
3709
|
+
if (ox < 0 && dx > 0 && dirx < 0 || ox > 0 && dx < 0 && dirx > 0) {
|
|
3710
|
+
state._movement[0] = state._movementBound[0];
|
|
3711
|
+
}
|
|
3712
|
+
if (oy < 0 && dy > 0 && diry < 0 || oy > 0 && dy < 0 && diry > 0) {
|
|
3713
|
+
state._movement[1] = state._movementBound[1];
|
|
3714
|
+
}
|
|
3743
3715
|
this.compute(event);
|
|
3744
3716
|
this.emit();
|
|
3745
3717
|
}
|