@tarojs/runtime 3.6.0-canary.3 → 3.6.0-canary.4

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.
@@ -9,6 +9,7 @@ export declare class TaroEvent {
9
9
  _stop: boolean;
10
10
  _end: boolean;
11
11
  defaultPrevented: boolean;
12
+ button: number;
12
13
  timeStamp: number;
13
14
  mpEvent: MpEvent | undefined;
14
15
  constructor(type: string, opts: EventOptions, event?: MpEvent);
@@ -112,6 +112,8 @@ declare class TaroEvent {
112
112
  _stop: boolean;
113
113
  _end: boolean;
114
114
  defaultPrevented: boolean;
115
+ // Mouse Event botton property, it's used in 3rd lib, like react-router. default 0 in general
116
+ button: number;
115
117
  // timestamp can either be hi-res ( relative to page load) or low-res (relative to UNIX epoch)
116
118
  // here use hi-res timestamp
117
119
  timeStamp: number;
@@ -2345,6 +2345,8 @@ class TaroEvent {
2345
2345
  this._stop = false;
2346
2346
  this._end = false;
2347
2347
  this.defaultPrevented = false;
2348
+ // Mouse Event botton property, it's used in 3rd lib, like react-router. default 0 in general
2349
+ this.button = 0;
2348
2350
  // timestamp can either be hi-res ( relative to page load) or low-res (relative to UNIX epoch)
2349
2351
  // here use hi-res timestamp
2350
2352
  this.timeStamp = Date.now();