@Override
    public boolean drag(Point p) {
        if(clickOffset != null){
            value = Math.max(0, (float) (p.x - clickOffset.x) / width);
        }else{
            value = Math.max(0, (float) p.x / width);
        }
        try {
            if(call != null) call.click(this);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return true;
    }