From: Matti Tahvonen Date: Mon, 30 Jul 2007 06:55:19 +0000 (+0000) Subject: small fix (3h) X-Git-Tag: 6.7.0.beta1~6152 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=545e7b8034f1670232d460a1c5854adf2f348f48;p=vaadin-framework.git small fix (3h) svn changeset:1921/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ISlider.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ISlider.java index 866c3a5c72..1232eaaac1 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ISlider.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ISlider.java @@ -160,12 +160,10 @@ public class ISlider extends Widget implements Paintable { } public void onBrowserEvent(Event event) { - if(DOM.compare(DOM.eventGetTarget(event), handle)) + if(dragging || DOM.compare(DOM.eventGetTarget(event), handle)) processHandleEvent(event); else processBaseEvent(event); - - super.onBrowserEvent(event); } private void processHandleEvent(Event event) { @@ -180,13 +178,13 @@ public class ISlider extends Widget implements Paintable { break; case Event.ONMOUSEMOVE: if (dragging) { - client.console.log("Slider handle: dragging..."); int x = DOM.eventGetClientX(event); int y = DOM.eventGetClientY(event); if(vertical) { // TODO } else { if(values == null) { + client.console.log("Slider handle: dragging..." + x); float handleW = Integer.parseInt(DOM.getAttribute(handle, "offsetWidth")); float baseX = DOM.getAbsoluteLeft(base); float baseW = Integer.parseInt(DOM.getAttribute(base, "offsetWidth"));