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

mousemove listener doesn't work after the first click on jacket #8

Open
ofilippov opened this issue Apr 20, 2014 · 7 comments
Open
Labels
Milestone

Comments

@ofilippov
Copy link

I can add mousemove listener on some node on jacket and it works fine. However after I make a click on jacket musemove listener doesn't respond anymore. Second and all other clicks work fine (click listener responds).

Video: http://screencast.com/t/WYj5z8aUF

Code:

<!DOCTYPE html>
<html lang="en" xml:lang="en">
<head>
    <meta name="jacket.title" content="Test" />
    <meta name="jacket.author" content="Oleg Philippov" />
    <meta name="jacket.version" content="1.0" />
    <meta name="jacket.uid" content="com.philippov.test" />

    <meta name="jacket.bounds" content="304x53" />
    <meta name="jacket.variations" content="Small" />
    <meta name="jacket.options" content="no-dragging" />


    <script>
        Simplify.listen(Simplify.events.ready, function(size, state)
        {
            $("#main").mousemove(function(e) {
                __log("move: " + e.pageX);
            });

            $("#main").click(function(e) {
                __log("click: " + e.pageX);
            });
        });

        function __log(str)
        {
            document.getElementById("log").innerHTML = str.toString();
        }
    </script>
</head>
<body>
    <div id="main" style="position: absolute; top: 1px; left: 1px; width: 302px; height: 48px; background: linear-gradient(to bottom,#F0F0F0 0%,#C8C8C8 100%);border-radius: 4px;border-bottom: 1px solid #CFCFCF;border-top: 1px solid #FCFCFC;box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2); user-select: none;-webkit-user-select: none;">

        <div id="log" style="position: absolute; top: 0px; right: 0px; color: red"></div>

    </div>
</body>
</html>
@din din added the bug label Apr 20, 2014
@din din modified the milestones: 3.1, 3.0.1 Apr 20, 2014
@din
Copy link
Owner

din commented Apr 20, 2014

Indeed, that was a bug. Just fixed it internally. The fix will be available in 3.0.1.

@din din closed this as completed Apr 20, 2014
@din
Copy link
Owner

din commented Apr 27, 2014

Try your example now. It should work under 3.0.1 build.

@din din reopened this Apr 27, 2014
@ofilippov
Copy link
Author

Nope, still doesn't work. Version 3.0.1.

@din
Copy link
Owner

din commented Apr 27, 2014

Oh sorry, I am mistaken. It should work under 3.0.2. I thought I included the fix into 3.0.1, but it was submitted to the MAS much earlier, so I included it into 3.0.2. We will push it to the MAS soon, though.

@ofilippov
Copy link
Author

I've tested it on a 3.0.2
Works fine, thanks!
Bug can be closed now.

@ofilippov
Copy link
Author

Sorry, I have to reopen this one. I've found that there are no mousemove events when I move mouse over jacket with left mouse button pressed. So, I cannot emulate dragging of control on jacket.

@ofilippov ofilippov reopened this Apr 30, 2014
@din
Copy link
Owner

din commented Apr 30, 2014

Could you please write an email to d@sgml.me or support@mmth.us, so I can send you a test bundle of the next public release? That would create some space to properly test your code and to fix our issues.

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

No branches or pull requests

2 participants