Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(range): allow fractional steps #12153

Closed
wants to merge 54 commits into from
Closed

Conversation

AmitMY
Copy link
Contributor

@AmitMY AmitMY commented Jun 25, 2017

WIP, it works, but snaps fractional values even without snap.

Short description of what this resolves:

I want a range from 0.5 to 1.5 (step: 0.1), and while I can use an intermediate variable, with range 1-15, I can't use pin for that.

Changes proposed in this pull request:

  • Don't round the step

Ionic Version: 3.x

Closes: #6812 #9098

brandyscarney and others added 30 commits June 12, 2017 13:51
When `Tabs` are nested within each other, the highlight can get
misaligned. This prevents that by ensuring the affected
`.tab-highlight` is a direct child of the targeted `Tabs`.
…tabs

* wip

* wip

* progress

* wippy skippy

* getting there

* all tests passing except goBack

* unit tests pass again boi

* goBack tests pass

* great success

* the good stuff
danbucholtz and others added 16 commits June 20, 2017 13:26
* test(nav): add third page to nav/simple-nav

* progress

* workin'

* updates

* updates
update app-scripts to 1.3.11, add npm 5 support
…n the short term

support for named ion-nav/ion-tabs to improve url in the short term
…'_transitionFinish', provide no

mark as not transitioning on success in addition to '_transitionFinish', provide note as to why we
want it in both places
@PAFsec
Copy link

PAFsec commented Jul 3, 2017

Hello,

Your fix does not work as the value is after rounded again later in the code.

this issue is already referenced here #6812 and #9098

@AmitMY
Copy link
Contributor Author

AmitMY commented Jul 3, 2017

I like that, thanks!
That solution does not fully work as well, as there is a Math.round on step, and I don't like needing to specify resolution. I changed my solution a bit, to incorporate the resolution, but it self calculates it so there is no need to give it as an input.
I also think that fractional min and max are a good thing, which that solution does not do.

@PAFsec
Copy link

PAFsec commented Jul 11, 2017

Ah, true, did not think of that !

Is it working well with your fractional step ? Because with the solution given in the two other issues, I stated that there was a kind of shaky behavior on the knob.

Thanks,

@AmitMY
Copy link
Contributor Author

AmitMY commented Jul 11, 2017

@PAFsec Yeah, this is not perfect, it "snaps fractional values even without snap" weirdly, but I think that is probably a small fix.. would love some team feedback on this

@Ionitron
Copy link
Collaborator

Hello and thank you for contributing to Ionic! We have been working on porting all of the Ionic components to web components and have recently updated master to reflect this. This significant change has caused this pull request to break. While we really appreciate the time and effort you put into creating this, we are not able to merge it because of the newly introduced conflicts. We are extremely sorry about this. We will not be merging any more features in to v3. If this is a feature and you have the time, please resubmit this PR against the master branch. If this is a critical security issue in v3, we would greatly appreciate it if you would resubmit the PR against the new v3 branch. Thanks so much for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Range slider with float step size