Avoid polling every 500ms for font size changes
This commit is contained in:
parent
7c92d113b2
commit
fcc37e2068
1 changed files with 2 additions and 2 deletions
|
|
@ -77,13 +77,13 @@ var Text = function(parentEl) {
|
|||
|
||||
this.$pollSizeChanges = function() {
|
||||
var self = this;
|
||||
setInterval(function() {
|
||||
//setInterval(function() {
|
||||
var size = self.$measureSizes();
|
||||
if (self.$characterSize.width !== size.width || self.$characterSize.height !== size.height) {
|
||||
self.$characterSize = size;
|
||||
self._dispatchEvent("changeCharaterSize", {data: size});
|
||||
}
|
||||
}, 500);
|
||||
//}, 500);
|
||||
};
|
||||
|
||||
this.$fontStyles = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue