mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Use DomElement.isVisible() check even if keepalive=true.
This commit is contained in:
parent
52175da3e9
commit
8002ede7bd
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ DomEvent.requestAnimationFrame = new function() {
|
|||
var entry = callbacks[i],
|
||||
func = entry[0],
|
||||
element = entry[1];
|
||||
if (!element || element.getAttribute('keepalive') == 'true'
|
||||
|| focused && DomElement.isVisible(element)) {
|
||||
if (!element || (element.getAttribute('keepalive') == 'true'
|
||||
|| focused) && DomElement.isVisible(element)) {
|
||||
// Handle callback and remove it from callbacks list.
|
||||
callbacks.splice(i, 1);
|
||||
func(Date.now());
|
||||
|
|
Loading…
Reference in a new issue