Open kilobajt opened 3 years ago
Thanks, will try to pick this up one day.
Any update on this issue? Thanks a lot!
@artt I don't know if you have the same problem like @kilobajt …(?)
Because: I also saw that 1px offset and fixed it with a even font-size
.
Example with 1px offset:
.tick {
font-size: 1.5em;
}
Fixed example:
.tick {
font-size: 1.6em;
}
(Maybe it's more a workaround than a solution, but it works … ;-))
I tried to integrate your component into our web application and I encountered two bugs while testing. I managed to fix them and I provide fixes below. Line numbers are related to https://github.com/pqina/flip/blob/master/dist/flip.js
Bugs and fixes:
When started minimized timer wouldn't start. I discovered there's a problem with sleepIntervalOffset being null and this happens because of code on line #4155 (if(isDocumentHidden()...) which should really be executed after line #4161, so after calculating tickExpectedTime. Fixed lines:
4154... 4161:
657: this._front.style.transform = 'rotateX(' + degrees + 'deg) translateZ(0) scale(1.0, 1.0)';
658: this._back.style.transform = 'rotateX(' + (-180 + degrees) == -360 ? 0 : (-180 + degrees) + 'deg) translateZ(0) scale(1.0, 1.0)';