Switch Random.id() to Math.random() for triggering reactive updates. Random.id() is taking 40ms on Chrome for some reason
This commit is contained in:
1 parent
05d9a41f45
commit
37fff25b50
7 files changed
+16
-17
No files matched your search
@@ -60,7 +60,7 @@ Template.cineDialog.onCreated(() => {
|
||||
playClipData.framesPerSecond = OHIF.viewer.cine.framesPerSecond;
|
||||
}
|
||||
|
||||
Session.set('UpdateCINE', Random.id());
|
||||
Session.set('UpdateCINE', Math.random());
|
||||
};
|
||||
|
||||
// Define the actions API
|
||||
@@ -123,7 +123,7 @@ Template.cineDialog.onCreated(() => {
|
||||
}
|
||||
|
||||
// Update the session to refresh the framerate text
|
||||
Session.set('UpdateCINE', Random.id());
|
||||
Session.set('UpdateCINE', Math.random());
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user