Fossil

Check-in [fff09df34f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:The smart "scroll to" routine also needs to scroll upwards when used for their new purpose.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | timeline-keyboard-navigation
Files: files | file ages | folders
SHA3-256: fff09df34ff57b8d0c95c6b3910646adde05376d23e3537de0217257692e2fd2
User & Date: florian 2022-08-04 12:02:00.000
Context
2022-08-05
06:22
Shortcut SHIFT+J to view the timeline of the focused entry filtered by branch. Add the 'm' query parameter to /timeline links. ... (check-in: 7bbd1b9918 user: florian tags: timeline-keyboard-navigation)
2022-08-04
12:02
The smart "scroll to" routine also needs to scroll upwards when used for their new purpose. ... (check-in: fff09df34f user: florian tags: timeline-keyboard-navigation)
11:46
Docs v0.1, with upper-/lower-case letter notation, instead of SHIFT+LETTER (which may be somewhat confusing for the "," and ";" case). ... (check-in: b02508d358 user: florian tags: timeline-keyboard-navigation)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/graph.js.
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
      return null;
    }
    function focusScrollToIntoViewTheFossilWay(e){
      var y = 0;
      do{
        y += e.offsetTop;
      }while( e = e.offsetParent );
      y -= window.innerHeight/2;
      if( y>0 ) window.scrollTo(0,y);
    }
    function focusVisualize(id,scroll){
      var td = document.querySelector('.timelineFocused');
      if( td ) td.classList.remove('timelineFocused');
      if( !id ) return true;
      var tn = document.getElementById(id);
      if( tn ){







<
|







909
910
911
912
913
914
915

916
917
918
919
920
921
922
923
      return null;
    }
    function focusScrollToIntoViewTheFossilWay(e){
      var y = 0;
      do{
        y += e.offsetTop;
      }while( e = e.offsetParent );

      window.scrollTo(0,y-window.innerHeight/2);
    }
    function focusVisualize(id,scroll){
      var td = document.querySelector('.timelineFocused');
      if( td ) td.classList.remove('timelineFocused');
      if( !id ) return true;
      var tn = document.getElementById(id);
      if( tn ){