From 258450a82b61b1582905978433b8ed23575924b8 Mon Sep 17 00:00:00 2001 From: Anastasia Smirnova Date: Wed, 10 Apr 2019 16:17:18 +0300 Subject: Clicking on slider makes handler move (#11519) * Clicking on slider makes handler move Fixes #1496 * Introducing control over clicking behaviour - User will have to enable process of the click event on handle calling `slider.setEnableClickHandler(true);` - Clean-up the handler logic in VSlider.java - Renaming the property to `updateValueOnClick` - Added JavaDocs - Fixing tests --- shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared') diff --git a/shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java b/shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java index 1749e6afe2..6787dc4d53 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java @@ -38,6 +38,9 @@ public class SliderState extends AbstractFieldState { @NoLayout public int resolution = 0; + @NoLayout + public boolean updateValueOnClick = false; + public SliderOrientation orientation = SliderOrientation.HORIZONTAL; } -- cgit v1.2.3