Plugin Directory

Changeset 2803597

Timestamp:
10/24/2022 05:57:19 PM (22 months ago)
Author:
cfinke
Message:

Improve compatibility with themes that have menus that hide/appear after a certain timer.

A timeout of 500ms here seems to be a sweet spot for not interfering with themes that have menus or other UI elements that hide or appear based on
mouse movements.

See https://wordpress.org/support/topic/improve-interaction-observing/

Location:
akismet/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/_inc/akismet-frontend.js

    r2791393 r2803597  
    252252
    253253            mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) {
    254                 var now = ( new Date() ).getTime() - 250; // To account for the timer delay.
     254                var now = ( new Date() ).getTime() - 0; // To account for the timer delay.
    255255
    256256                var mousemove = [];
     
    272272                mousemoveStart = null;
    273273                mousemoveTimer = null;
    274             }, 250, e, mousemoveStart );
     274            }, 0, e, mousemoveStart );
    275275        }, supportsPassive ? { passive: true } : false  );
    276276
     
    282282            touchmoveCountTimer = setTimeout( function () {
    283283                touchmoveCount++;
    284             }, 250 );
     284            }, 0 );
    285285        }, supportsPassive ? { passive: true } : false );
    286286
     
    321321            scrollCountTimer = setTimeout( function () {
    322322                scrollCount++;
    323             }, 250 );
     323            }, 0 );
    324324        }, supportsPassive ? { passive: true } : false );
    325325    }
  • akismet/trunk/akismet.php

    r2791405 r2803597  
    77Plugin URI: https://akismet.com/
    88Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
    9 Version: 5.0.1
     9Version: 5.0.1
    1010Requires at least: 5.0
    1111Requires PHP: 5.2
     
    4040}
    4141
    42 define( 'AKISMET_VERSION', '5.0.1' );
     42define( 'AKISMET_VERSION', '5.0.1' );
    4343define( 'AKISMET__MINIMUM_WP_VERSION', '5.0' );
    4444define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • akismet/trunk/readme.txt

    r2791405 r2803597  
    3030
    3131== Changelog ==
     32
     33
     34
     35
     36
    3237
    3338= 5.0.1 =
Note: See TracChangeset for help on using the changeset viewer.