WordPress.org

Forums

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

  1. dannyjimmy
    Member
    Posted 1 year 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 1 year 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

  3. lizy1978
    Member
    Posted 8 months ago #

    Hi. I am having this same issue. I found the bit of code in js-functions.php that you are talking about, but I don't know what to change it to.

    Thanks,

    Lizy

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ITRO Popup Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.