@Override
    public void click(Point p) {
        if(p.x >= width * value - handleWidth && p.x <= width * value + handleWidth &&
           p.y >= 0 && p.y <= height){
            
            clickOffset = new Point((int) (p.x - (width * value)), p.y);
        }else{
            value = Math.max(0, (float) p.x / width);
            try {
                if(call != null) call.click(this);
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
        clicktime = System.currentTimeMillis();
    }