Frank

Results 47 comments of Frank

Ok, doing it the other way seems to work. You just need to avoid setting the "keyboard step" when you leave the range input using the keyboard, using the tab...

It mainly allows to have a really smooth sliding effect when using the mouse, you can check it here: https://standardbm.e-bordeaux.org/image-compare-slider But screen readers might sound a bit weird when vocalizing...

Ok, a better solution is to simply use a decimal `step` like `0.01` when using mouse. So no need to modify the default `100` `max` value. New code: ```javascript var...

I think you can close it. I guess we should create another dedicated issue for that `keyboard_step` idea...

@rafacamargo123 thanks a lot for your detailed workaround solution. Sadly it would required us to used two different API keys (jsonrpc and custom user). It would be really great if...

Ok, here is a small piece of code that seems to work: ``` var range_input = element.shadowRoot.querySelector('input'); if (range_input) { range_input.value = settings.image_compare.options.starting_position; range_input.dispatchEvent(new Event('change')); } ``` Is it the...

For your information, I have implemented this solution in my new Drupal module : https://www.drupal.org/project/image_compare I guess it could be easily integrated into the native library. I just added a...