From 45dd5391798754e877c3627e3fca3beac0872ccc Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 20 Nov 2020 16:06:16 +0100 Subject: [PATCH] also update preference onchange for IE --- src/platform/web/ui/session/settings/SettingsView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/web/ui/session/settings/SettingsView.js b/src/platform/web/ui/session/settings/SettingsView.js index 1ee7b360..fd64593e 100644 --- a/src/platform/web/ui/session/settings/SettingsView.js +++ b/src/platform/web/ui/session/settings/SettingsView.js @@ -59,13 +59,15 @@ export class SettingsView extends TemplateView { const step = 32; const min = Math.ceil(vm.minSentImageSizeLimit / step) * step; const max = (Math.floor(vm.maxSentImageSizeLimit / step) + 1) * step; + const updateSetting = evt => vm.setSentImageSizeLimit(parseInt(evt.target.value, 10)); return [t.input({ type: "range", step, min, max, value: vm => vm.sentImageSizeLimit || max, - onInput: evt => vm.setSentImageSizeLimit(parseInt(evt.target.value, 10)), + onInput: updateSetting, + onChange: updateSetting, }), " ", t.output(vm => { return vm.sentImageSizeLimit ? vm.i18n`resize to ${vm.sentImageSizeLimit}px` :