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

is it possible to change the smaller circle size ratio with respect to the bigger circle? It's default 50% #53

Open
sprajagopal opened this issue Aug 2, 2017 · 4 comments

Comments

@sprajagopal
Copy link

No description provided.

@yoannmoinet
Copy link
Owner

yoannmoinet commented Aug 2, 2017

Hi,
it seems that this part hardcode the 50%.

But if you had some CSS like this :

.nipple .front {
     width: 20% !important;
}

The !important part is the important part here ;)

It will override the one that is written in JS.
It's a bit hacky, but I think it would be a solution for you.
Tell me if it's enough, and close the issue if so.

Cheers!

@yoannmoinet
Copy link
Owner

Just tested it, it's not possible.
Since the movement is based on the size of the front element.

You'll need to create a new option to set the front part size independently.

PR's welcome ;)

@iodev
Copy link
Contributor

iodev commented Mar 10, 2019

see if what I added in commit 853aaf3 fixes it for you

I use the nipple.raw.position to see how far it is pulled beyond the origin of the nipple, for use as a touchpad, in data-only mode, with no nipple showing. You could then trigger the size of the css dynamically, from js code, when over the 50 (> Math.abs(45))

@cazhjo
Copy link

cazhjo commented Oct 8, 2020

overriding the size by using scale works for me

.nipple .front {
    scale: 1.2 !important;
}

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

No branches or pull requests

4 participants