Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 42f75e1

Browse files
committed
Fix one read receipt randomly not appearing
The velociraptor was only actioning hidden -> visible transitions if the position had changed, so the one RR that stayed in position but became visible... didn't become visible.
1 parent 4ab4795 commit 42f75e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Velociraptor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ module.exports = React.createClass({
6262
oldNode.style.visibility = c.props.style.visibility;
6363
}
6464
});
65-
if (oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') {
66-
oldNode.style.visibility = c.props.style.visibility;
67-
}
6865
//console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left);
6966
}
67+
if (oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') {
68+
oldNode.style.visibility = c.props.style.visibility;
69+
}
7070
self.children[c.key] = old;
7171
} else {
7272
// new element. If we have a startStyle, use that as the style and go through

0 commit comments

Comments
 (0)