Giter Site home page Giter Site logo

angular-touchspin's People

Contributors

matinfo avatar nkovacic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angular-touchspin's Issues

Increment/Decrements call two times for vertical buttons.

TouchSpinController.prototype.startSpinUp = function () {

            var _this = this;
            this.checkValue();
            if (this.touchSpinOptions.verticalButtons) {
                this.decrement(); // **first decrement value here**
            } else {
                this.increment(); // **first increment value here**
            }
            this.stopSpin(true);
            this.clickStart = Date.now();
            this.timeout = this.$timeout(function () {
                // if (this.timer) {
                // 	this.$interval.cancel(this.timer);
                // }
                _this.timer = _this.$interval(function () {
                    if (_this.touchSpinOptions.verticalButtons) {
                        _this.decrement(); **// again value decrement here**
                    } else {
                        _this.increment(); **// again value increment here**
                    }
                }, _this.touchSpinOptions.stepInterval);
            }, this.touchSpinOptions.stepIntervalDelay);
        };

Verticle button css is backwards

The verticle button CSS is backwards for me. As you can see from the screenshot, the button radiuses are in the wrong spot. Also wouldn't the up button need to be created before the down button?

image

image

Not support angular 1.6.x

I noticed that the options="optionsVariable" passed to the directive not more work with Angular JS 1.6.x

Option to swap buttons

Great library, I use it often. Please add an option to swap the + and - arrows for the horizontal aligned buttons, if possible. Thanks...

Update after div is rendered

How can I send a value after the div has been draw? If I put a value to the var in the controller it is working fine, but when I load it from a web service, it always return 0 because it don't update the number.

Thanks for the help

Debounce on mouse click

Love the touchspin, thanks for great package.
Users are however complaining that the first click always jumps two increments, after that it works fine. The issue is intermittent.
I can confirm that this happens in testing too. When clicking the up arrow once the input would jump from 0 to 2

iPhone spinner not working

The Bootstrap Touchspin http://www.virtuosoft.eu/code/bootstrap-touchspin/ works fine on an iPhone, if I touch and hold a plus or minus button, the spinner starts spinning.

With angular-touchspin the spinner reacts to click and hold correctly and starts spinning on a browser.
However on an iPhone it does not. It never spins and only increments the value on releasing the touch.

This is a crucial usability issue

Speed up incrementing the longer you hold the + / - buttons and keys

I've seen on similar ui components that as you continue to hold the up / down keys, the time it takes to increment the number gets progressively faster. This is really helpful if you are going from say zero to 1000 - it takes a lot less time to get there. You may have already made this possible and I don't know how to set the option, but if not, is there a way to modify it?

changing button color

Hi there, how can i change the +- buttons color. I have tried to do it manually in angular.touchspin.css file, by adding color: "black", to every group but it doesnot change

Button click and mouse leave

If you hold the left mouse button on the touchspin buttons ('+' and '-' or the vertical buttons) and then drag the mouse pointer off the button area, the value of the input will keep increasing (or decreasing), even when you stop pressing the mouse.

The best solution I can think to solve this of is to add a "ng-mouseleave=vm.stopSpin()" into every button tag on the directive html. This way the value will stop changing when you leave the button area.

Why is the decrement button now on top?

Why would I want vertical buttons with the - on top and the + on the bottom?

screen shot 2016-11-02 at 2 45 42 pm

The buttons correctly increment and decrement, but everyone expects increment to be on top. Is this a config option?

Submit on clicking + or -

use a tag for button or button with type="button" otherwise button without type is treated as submit. :(

Can't display the default value of ng-model ...

Hi,

I have a simple controller with :

$scope.value = 75;
$scope.options = {
        verticalButtons: true,
        decimals: 2,
        max: 100,
        min: 0.1,
        step: 0.1
 }

And in my html :
<touch-spin ng-model="value" options="options"></touch-spin>

But the spin display 0.1 (minimum value) instead of 75 ? Any ideas ?

Thx.

build error typings/index.d.ts not found

Hi, I no more be able to compile:

./dev/index.ts
Module build failed: A file specified in tsconfig.json could not be found: /Users/mat/Workspace/git/angular-touchspin/typings/index.d.ts
 @ multi main

Path must be a string. Received undefined

multiple instances in same controller

Hi,
we have a page with some instances of touchspin and when we edit the input text all models are set with the same value!
can you help me?
Thank you,
Sergio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.