WordPress.org

Ready to get started?Download WordPress

Forums

ITRO Popup Plugin
Popup wiggles / jiggles / twitches. (2 posts)

  1. dannyjimmy
    Member
    Posted 4 months ago #

    my box keeps wiggling between:

    style="top: 279px;"
    style="top: 278.5px";

    This shows up visually on some browsers, not always on others.

    It was wiggling on safari when my contents were a gravity form.
    It even started wiggling on chrome when I used an image with width=100%.

    Perhaps you could make it only recalculate upon opening and upon window-resize as opposed to recalculating all the time?

    Let me know if you need help with this, or want some code / patch. I'll likely start working on this now to see if I can get it fixed.

    https://wordpress.org/plugins/itro-popup/

  2. ITRO Team
    Member
    Plugin Author

    Posted 3 months ago #

    Hello,
    sorry for late reply! Thank you for your advice, will try to fix it in the next version.
    In the present the top margin is refreshed every 0.1 sec.
    You can try to edit the file scripts/js-functions.php at the line 82
    setInterval(function(){marginRefresh()},100); /* refresh every 0.1 second the popup top margin (needed for browser window resizeing) */
    instead of an interval is bettere to use a listener for windows resizing.
    If you have a good solution post it and we'll add it to next release!
    Thank you

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.