Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaling issue #1

Open
CasualUser-12345 opened this issue Mar 30, 2021 · 1 comment
Open

Scaling issue #1

CasualUser-12345 opened this issue Mar 30, 2021 · 1 comment

Comments

@CasualUser-12345
Copy link

Using the drawer while being zoomed in using Alt-Click leads to parallax between mouse and the line being drawn.
The same thin happens in full-screen mode.

Occurs in the demo page itself.

@deadmanIsARabbit
Copy link

deadmanIsARabbit commented Jan 13, 2023

You can fix this by yourself.
Provide this code in your HTML:

function updateCanvasSize() {
    $("canvas.revealjs-drawer_canvas").attr("width" ,$("#sections").width());
    $("canvas.revealjs-drawer_canvas").attr("height", $("#sections").height());
}

$( window ).resize(function() {
    updateCanvasSize();
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants