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

CSS zoom breaks effect origin point #214

Open
tchyra opened this issue May 24, 2021 · 0 comments
Open

CSS zoom breaks effect origin point #214

tchyra opened this issue May 24, 2021 · 0 comments

Comments

@tchyra
Copy link

tchyra commented May 24, 2021

Setting the CSS zoom property on a container to anything other than 1 causes the origin point of the effect to stop matching the point at which the element was clicked. It looks like this:

image

A tiny demo page that reproduces the issue:

<!DOCTYPE html>
<html>
<head>
    <title>Broken waves demo</title>
    <link rel="stylesheet" href="waves/waves.min.css" />
</head>
<body style="zoom: 3;">
    <button class="waves-effect">Broken waves</button>
    <script src="waves/waves.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', ev => {
            Waves.init();
        });
    </script>
</body>
</html>

Love the library!

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

1 participant