• Ahmed Fakhry's avatar
    MD Settings: Fix a resolution slider bug · 21b13d12
    Ahmed Fakhry authored
    Moving from a tab of a display that has more modes to a tab
    of another display that has less modes, where the selected
    mode of the first display has index >= max index of the second
    display's modes, this would result in the first display's mode
    changing to the previous one in the slider.
    
    This CL fixes this issue by ignoring change callbacks when the
    various parameters of the currently selected display are still
    out of sync.
    
    BUG=822248
    
    Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
    Change-Id: I97d1a55b87ad99d9d6821270618609a7c4a880a7
    Reviewed-on: https://chromium-review.googlesource.com/965630
    Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
    Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#543903}
    21b13d12
display.js 23.5 KB