summaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorAnastasia Smirnova <anasmi@utu.fi>2019-04-10 16:17:18 +0300
committerSun Zhe <31067185+ZheSun88@users.noreply.github.com>2019-04-10 16:17:18 +0300
commit258450a82b61b1582905978433b8ed23575924b8 (patch)
treea410f391ff9889e475a88b94bad4c7e24c73d49f /shared/src
parent7392bf241f115a9a338e047187be1b1d1ddfaed6 (diff)
downloadvaadin-framework-258450a82b61b1582905978433b8ed23575924b8.tar.gz
vaadin-framework-258450a82b61b1582905978433b8ed23575924b8.zip
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
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/slider/SliderState.java3
1 files changed, 3 insertions, 0 deletions
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;
}