mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -04:00
Merge 13c457fa15
into acb99b6f87
This commit is contained in:
commit
93bb22e2e7
1 changed files with 2 additions and 2 deletions
|
@ -373,8 +373,6 @@ var Mouse = require('../core/Mouse');
|
|||
timestamp: engine.timing.timestamp
|
||||
};
|
||||
|
||||
Events.trigger(render, 'beforeRender', event);
|
||||
|
||||
// apply background if it has changed
|
||||
if (render.currentBackground !== background)
|
||||
_applyBackground(render, background);
|
||||
|
@ -385,6 +383,8 @@ var Mouse = require('../core/Mouse');
|
|||
context.fillRect(0, 0, canvas.width, canvas.height);
|
||||
context.globalCompositeOperation = 'source-over';
|
||||
|
||||
Events.trigger(render, 'beforeRender', event);
|
||||
|
||||
// handle bounds
|
||||
if (options.hasBounds) {
|
||||
// filter out bodies that are not in view
|
||||
|
|
Loading…
Add table
Reference in a new issue