Slide the knob to a new location.

@param event
the mouse event
15520
private void slideKnob(Event event) {
		int x = DOM.eventGetClientX(event);
		if (x > 0) {
			int lineWidth = lineElement.getOffsetWidth();
			int lineLeft = lineElement.getAbsoluteLeft();
			double percent = (double) (x - lineLeft) / lineWidth * 1.0;
			setCurrentValue(getTotalRange() * percent + minValue, true);
		}
	}
440169
def move_to(x, y):
    
    for b in _button_state:
        if _button_state[b]:
            e = Quartz.CGEventCreateMouseEvent(
                None,
                _button_mapping[b][3], # Drag Event
                (x, y),
                _button_mapping[b][0])
            break
    else:
        e = Quartz.CGEventCreateMouseEvent(
            None,
            Quartz.kCGEventMouseMoved,
            (x, y),
            Quartz.kCGMouseButtonLeft)
    Quartz.CGEventPost(Quartz.kCGHIDEventTap, e)
834194
def mouse_move_event(self, event):
        
        self.example.mouse_position_event(event.x(), event.y())
367920
function (event) {
        if (this.selected) {
            // follow the pointer
            me.game.world.moveUp(this);
            this.pos.set(event.gameX, event.gameY, this.pos.z);
            this.pos.sub(this.grabOffset);
        }
    }
1175975
public void onClick(MenuItemClickEvent event) {
		if (editController.getInfoLabel() == null) {
			editController.showGeometricInfo();
		} else {
			editController.hideGeometricInfo();
		}
	}
304542
protected void onMove(Event event) {

        m_clientX = event.getClientX();
        m_clientY = event.getClientY();
        checkTargets();
        positionHelper();
        scrollAction();
    }
772178
public void onClick(MenuItemClickEvent event) {
		if (editController.getEditMode() == EditMode.DRAG_MODE) {
			editController.setEditMode(EditMode.INSERT_MODE);
		} else {
			editController.setEditMode(EditMode.DRAG_MODE);
		}
	}
1211631
public void setOnSlideClickListener(OnSlideClickListener slideClickListener) {
        this.slideClickListener = slideClickListener;
        if (slideClickListener != null) {
            setClickable(true);
            setOnClickListener(this);
        } else {
            setClickable(false);
            setOnClickListener(null);
        }
    }
230920
public void onChanged(ChangedEvent event) {
		String value = (String) scaleItem.getValue();

		Double scale = valueToScale.get(value);
		if (scale != null && !Double.isNaN(pixelLength) && 0.0 != pixelLength) {
			mapView.setCurrentScale(scale / pixelLength, MapView.ZoomOption.LEVEL_CLOSEST);
		}
	}
1293746
public void onMouseMove(MouseMoveEvent event) {
		if (isMeasuring() && distanceLine.getOriginalLocation() != null) {
			updateMeasure(event, false);
			dispatchState(State.MOVE);
		}
	}
475123
@Override
    public final void onBrowserEvent(final Event event) {

        super.onBrowserEvent(event);
        switch (DOM.eventGetType(event)) {
            // Unhighlight and cancel keyboard events
            case Event.ONBLUR:
                m_keyTimer.cancel();
                if (m_slidingMouse) {
                    stopMouseSliding(event);

                } else if (m_slidingKeyboard) {
                    m_slidingKeyboard = false;

                }

                break;

            // Mousewheel events
            case Event.ONMOUSEWHEEL:
                int velocityY = event.getMouseWheelVelocityY() * m_stepSize;
                event.preventDefault();
                CmsDebugLog.getInstance().printLine("Whell velocity: " + velocityY);
                if (velocityY > 0) {
                    shiftDown(velocityY);
                } else {
                    shiftUp(-velocityY);
                }
                break;

            // Shift left or right on key press
            case Event.ONKEYDOWN:
                if (!m_slidingKeyboard) {
                    int multiplier = 1;
                    if (event.getCtrlKey() || event.getMetaKey()) {
                        multiplier = m_stepSize;
                    }

                    switch (event.getKeyCode()) {
                        case KeyCodes.KEY_HOME:
                            event.preventDefault();
                            setValue(Integer.valueOf(0));
                            break;
                        case KeyCodes.KEY_END:
                            event.preventDefault();
                            setValue(Integer.valueOf(getMaximumVerticalScrollPosition()));
                            break;
                        case KeyCodes.KEY_PAGEUP:
                            event.preventDefault();
                            m_slidingKeyboard = true;
                            shiftUp(m_pageSize);
                            m_keyTimer.schedule(INITIALDELAY, true, m_pageSize);
                            break;
                        case KeyCodes.KEY_PAGEDOWN:
                            event.preventDefault();
                            m_slidingKeyboard = true;

                            shiftDown(m_pageSize);
                            m_keyTimer.schedule(INITIALDELAY, false, m_pageSize);
                            break;
                        case KeyCodes.KEY_UP:
                            event.preventDefault();
                            m_slidingKeyboard = true;

                            shiftUp(multiplier);
                            m_keyTimer.schedule(INITIALDELAY, true, multiplier);
                            break;
                        case KeyCodes.KEY_DOWN:
                            event.preventDefault();
                            m_slidingKeyboard = true;

                            shiftDown(multiplier);
                            m_keyTimer.schedule(INITIALDELAY, false, multiplier);
                            break;

                        default:
                    }
                }
                break;
            // Stop shifting on key up
            case Event.ONKEYUP:
                m_keyTimer.cancel();
                if (m_slidingKeyboard) {
                    m_slidingKeyboard = false;
                }
                break;

            // Mouse Events
            case Event.ONMOUSEDOWN:
                if (sliderClicked(event)) {
                    startMouseSliding(event);
                    event.preventDefault();
                }
                break;
            case Event.ONMOUSEUP:
                stopMouseSliding(event);
                break;
            case Event.ONMOUSEMOVE:
                slideKnob(event);
                break;
            default:
        }

    }
991581
public void slideTo()
	{
		int l = size().width() - SLIDER_WIDTH;
		int pos = MathHelper.clamp(mousePosition().x() - SLIDER_WIDTH / 2, 0, l);
		slideTo((float) pos / l);
	}
363115
function (slider) {
        Event.on(slider.id,'keydown', this._handleKeyDown, this,true);
        Event.on(slider.id,'keypress',this._handleKeyPress,this,true);
    }
254199
function (button, cb) {
            var lastPosition = this._lastMousePosition;
            this._sendEvent('mousedown', lastPosition.x, lastPosition.y, this.BUTTONS[button]);
            this._callCallback(cb);
        }
428373
function eventTap ( event ) {

            // The tap event shouldn't propagate up
            event.stopPropagation();

            var proposal = calcPointToPercentage(event.calcPoint);
            var handleNumber = getClosestHandle(proposal);

            // Tackle the case that all handles are 'disabled'.
            if ( handleNumber === false ) {
                return false;
            }

            // Flag the slider as it is now in a transitional state.
            // Transition takes a configurable amount of ms (default 300). Re-enable the slider after that.
            if ( !options.events.snap ) {
                addClassFor(scope_Target, options.cssClasses.tap, options.animationDuration);
            }

            setHandle(handleNumber, proposal, true, true);

            setZindex();

            fireEvent('slide', handleNumber, true);
            fireEvent('set', handleNumber, true);
            fireEvent('change', handleNumber, true);
            fireEvent('update', handleNumber, true);

            if ( options.events.snap ) {
                eventStart(event, { handleNumbers: [handleNumber] });
            }
        }
448097
def mouseReleaseEvent(self, event):
        
        if event.button() == QtCore.Qt.LeftButton:
            if event.modifiers() == QtCore.Qt.ControlModifier:
                self.goBack()
            else:
                self.goForward()
        
        super(XWalkthroughWidget, self).mouseReleaseEvent(event)
179005
def mouseMoveEvent( self, event ):
        
        self.setValue(self.valueAt(event.pos().x()))