Changeset 125133 in spip-zone


Ignore:
Timestamp:
Jun 11, 2020, 3:50:03 PM (3 months ago)
Author:
root
Message:

Récupérer plus de cas où ça scrolle…

Location:
_plugins_/medias_responsive_mod
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/medias_responsive_mod

    • Property subgit:lock:d962472065efa6eb849eefd6015a357743f6f6d5 deleted
    • Property subgit:lock:45b3cefb4a7ff398096456f5197e9229d43aca12 set to 2020-06-11T17:49:10.391
  • _plugins_/medias_responsive_mod/paquet.xml

    r125130 r125133  
    22        prefix="medias_responsive_mod"
    33        categorie="multimedia"
    4         version="1.14.1"
     4        version="1.14.2"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.3.*]"
  • _plugins_/medias_responsive_mod/squelettes/javascript/medias_responsive.js

    r123129 r125133  
    3737function _declencher_documents_actifs() {
    3838        if (scrollT) var sTop = scrollT;
    39         else var sTop = $("body").scrollTop();
     39        else var sTop = Math.max($("body").scrollTop(),$("html").scrollTop());
    4040
    4141        var hauteur = $("body").height();
     
    6464$(window).smartresize(calculer_spip_documents);
    6565
    66 $(window).on("load touchmove",declencher_documents_actifs);
     66$(window).on("load touchmove scroll",declencher_documents_actifs);
    6767$("body").on("scroll",declencher_documents_actifs);
    6868$(document).on("ajaxComplete", declencher_documents_actifs);
Note: See TracChangeset for help on using the changeset viewer.