Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
new release
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed Jan 25, 2016
1 parent 7b87ef8 commit 8410334
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"contributors": [
"adireddy"
],
"releasenote": "minor api updates in Sprite, Texture and Point classes",
"version": "3.0.30",
"releasenote": "minor bug fix in Application class",
"version": "3.0.31",
"url": "https://github.com/pixijs/pixi-haxe",
"dependencies": {
"perf.js": ""
Expand Down
6 changes: 2 additions & 4 deletions src/pixi/plugins/app/Application.hx
Original file line number Diff line number Diff line change
Expand Up @@ -213,17 +213,15 @@ class Application {

public function pauseRendering() {
Browser.window.onresize = null;
if (_animationFrameId != null){
if (_animationFrameId != null) {
Browser.window.cancelAnimationFrame(_animationFrameId);
_animationFrameId = null;
}
}

public function resumeRendering() {
if (autoResize) Browser.window.onresize = _onWindowResize;
if (_animationFrameId == null){
_animationFrameId = Browser.window.requestAnimationFrame(_onRequestAnimationFrame);
}
if (_animationFrameId == null) _animationFrameId = Browser.window.requestAnimationFrame(_onRequestAnimationFrame);
}

@:noCompletion function _onWindowResize(event:Event) {
Expand Down

0 comments on commit 8410334

Please sign in to comment.