• dpapad's avatar
    PDF Viewer: Presentation mode initial approach. · 50e3e4de
    dpapad authored
    Upon entering Presentation mode:
     - Disable scrolling and hide scrollbars.
     - Disable zooming with ctrl+wheel and pinch gestures.
     - Force fit-to-height.
     - Next/previous page can be shown using the left/right keyboard
      arrows.
    
    The following known issues
     - Zooming is still possible with ctrl+/-
     - Rotating is still possible via ctrl]/[
     - Using the scroll wheel does not update to the next/previous page
    
    will be addressed in a follow up CL.
    
    Bug: 1148478
    Change-Id: I8b0e3b9ea6c3ed6738bc07f313935c7ea4d770a7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2539741
    Commit-Queue: dpapad <dpapad@chromium.org>
    Reviewed-by: default avatarDaniel Hosseinian <dhoss@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#832284}
    50e3e4de
viewport.js 46.6 KB