Skip to content

Commit

Permalink
fix: 引用hammerjs导致小程序报错
Browse files Browse the repository at this point in the history
  • Loading branch information
BuggMaker committed Nov 5, 2020
1 parent 01080d0 commit 0c15a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interaction/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
*/
import './register';
import { deepMix, isWx, isMy, addEventListener, removeEventListener } from '../util/common';
import HammerUtil from 'hammerjs';
// import HammerUtil from 'hammerjs';

let Hammer;
if (!isWx && !isMy) {
Hammer = HammerUtil;
Hammer = require('hammerjs');
}

const TOUCH_EVENTS = [
Expand Down

0 comments on commit 0c15a67

Please # to comment.