mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
also update preference onchange for IE
This commit is contained in:
parent
3eec897630
commit
45dd539179
@ -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` :
|
||||
|
Loading…
Reference in New Issue
Block a user