Skip to content

Commit

Permalink
Merge pull request Franslee#7 from Yanfei-Qiao/master
Browse files Browse the repository at this point in the history
修正奖励文字比刮层出现早的问题  by Yanfei-Qiao
  • Loading branch information
Franslee authored Jul 8, 2016
2 parents c1c7a5f + 9610fe5 commit aa62a75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dist/lucky-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
* touchstart/mousedown event handler
*/
function _startEventHandler(event) {
this.cardDiv.style.opacity = 1;
this.moveEventHandler = _moveEventHandler.bind(this);
this.cover.addEventListener(this.events[1],this.moveEventHandler,false);
this.endEventHandler = _endEventHandler.bind(this);
Expand Down Expand Up @@ -192,6 +193,7 @@
if (!this.scratchDiv || !this.cardDiv) return;
this.cHeight = this.cardDiv.clientHeight;
this.cWidth = this.cardDiv.clientWidth;
this.cardDiv.style.opacity = 0;
this.createCanvas();
this.eventDetect();
};
Expand Down
4 changes: 2 additions & 2 deletions dist/lucky-card.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
],
"author": "Frans.Lee",
"license": "MIT",
"repositories": [{
"repository": {
"type": "git",
"url": "https://github.com/Franslee/lucky-card.git"
}],
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-autoprefixer": "^2.2.0",
Expand Down
2 changes: 2 additions & 0 deletions src/lucky-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
* touchstart/mousedown event handler
*/
function _startEventHandler(event) {
this.cardDiv.style.opacity = 1;
this.moveEventHandler = _moveEventHandler.bind(this);
this.cover.addEventListener(this.events[1],this.moveEventHandler,false);
this.endEventHandler = _endEventHandler.bind(this);
Expand Down Expand Up @@ -192,6 +193,7 @@
if (!this.scratchDiv || !this.cardDiv) return;
this.cHeight = this.cardDiv.clientHeight;
this.cWidth = this.cardDiv.clientWidth;
this.cardDiv.style.opacity = 0;
this.createCanvas();
this.eventDetect();
};
Expand Down

0 comments on commit aa62a75

Please sign in to comment.