• Joel Martin's avatar
    canvas.js: workaround WebKit bug, issue #28. · cdb55d26
    Joel Martin authored
    This is WebKit bug https://bugs.webkit.org/show_bug.cgi?id=46319
    
    The workaround is to wrap Canvas render functions with a function that
    sets a flush timer. The flush function sets the right margin and then
    1ms later sets it back. This triggers the canvas to redraw with the
    correct contents.
    
    Two downsides:
    - rendering is slower, but only on the busted versions of webkit.
      Correct and useful is better than fast and useless.
    - There is a barely perceptible jitter of the control buttons because
      the canvas size is changing by one pixel.
    
    To support this functionality, we also have to read out the exact
    webkit version from the user agent in the render engine detection code
    in include/util.js.
    cdb55d26
Name
Last commit
Last update
..
web-socket-js Loading commit data...
base64.js Loading commit data...
black.css Loading commit data...
canvas.js Loading commit data...
default_controls.js Loading commit data...
des.js Loading commit data...
plain.css Loading commit data...
playback.js Loading commit data...
rfb.js Loading commit data...
util.js Loading commit data...
vnc.js Loading commit data...
webutil.js Loading commit data...