Public Ticket #3182058
Mouse Triggers & Layer Links


  • Phillip started the conversation

    NOTE - Neither issue is critical because there are workarounds, but I wanted to make sure you were aware of the issues.

    Mouse triggers appear to be connected

    For "layer actions",  the "Mouse Enter" and "Mouse Leave" appear to be connected.   If a javascript function is linked to the "Mouse Enter" trigger, and a different function to the "Mouse Leave" trigger, whichever function was defined last will be called for both triggers.

    for example, 

        "#button" has 
            button_enter linked to "mouse enter", and then
            button_leave linked to "mouse leave", then
            button_leave gets called for both.

        "#button" has 
            button_leave linked to "mouse leave", and then
            button_enter linked to "mouse enter", then
            button_enter gets called for both.

        I get around this by linking a single function to both events, 
            and testing for $('#button:hover').length != 0

    Linking to a layer messes up the Mouse triggers

    If I set a URL link for a layer that has a function linked to the mouse triggers, the function doesn't get triggered.

    The workaround is easy - just don't link any URLs to layers with mouse triggers, and implement the links via javascript events.

        $('#button').on('click', function(event) {

                   // do stuff


  •  111
    George replied

    Hello Philip,

    We've already fixed this issue and we will release the new version in a couple of days. Thank you for the feedback.

    Best Regards,
    George | Kreatura Dev Team

  • Phillip replied

    Thank you!