In android, when I press and hold in a button, then move the pointer outside the button, the button un-highlights. But I have to move it significantly outside the button; just a few pixels isn't enough. And the slop seems to be wider than it is tall. What are the values of the slop dimensions? Where can I find them?
The values, by experimentation, appear to be SLOP_X = 24 and SLOP_Y = 0. Not real sure about the Y slop; scroll sensitivity is involved and it gets a little weird.
Related
While rotating an element used as button, I did notice that it won't intercept anymore click events from the mouse.
I can even hover on it, and it won't change color, it act like if it was a simple image. Is this a bug or am I doing something wrong?
Go to Canvas > Graphics Raycaster > Uncheck Ignore Reverse Graphics then the image can be clicked.
Flip it via the Z rotation (not the X or the Y). I tested it on my end, it works.
I ran into the same issue and found a way to fix it. If you flip the button over the x axis as well as the y you still get the button facing the direction you want but the click will register.
In the scene view when I zoom in past a certain point all the sprites (apart from one) disappear and it makes it near impossible for me to edit them because they become too small to see clearly.
This only just started happening everything was fine before and I don't think I have really changed anything that could have affected their ability to show when zoomed in.
The z positions have to be same as that of the canvas I am using
Press the F key a couple of times after selecting the sprite... it's for focus or something after you see it focus ...you will be able to zoom in endlessly to edit this is for sure a bug....I tried restarting unity first..then I tried adjusting the clipping low rate on the camera that is usually 0.3 to pure 0...and that was not it... the F key always gets it done I don't know why...also I changed the cameras near clipping plane back to 0.3 because it was not the issue.
Does any one know a way to change the behavior of Matlab sliders so that they move directly to the value you click on?
For instance, lets say a slider is initialized at zero (far left side). I'd like to able to click anywhere on the slider (including the far right side) and have the slider instantly move to that location. The way they normally work you'd have to click repeatedly to move the slider over to the right side one increment at a time, or hold down the right arrow.
I am running an experiment where subjects need to assign values for 420 sliders! It would speed things up a lot of each slider only required a single click.
Thanks,
I have got this situation:
this is the photo: http://imageshack.us/photo/my-images/826/iconepe.png/
the two images are little 20 pixel x pixel, If I click on them, nothing happens, if I click oh the left on them, the link works. I should make images bigger?
My guess is that you are missing the buttons with your finger.
The comfortable minimum size of tappable UI elements is 44 x 44
points.
According to the iOS Human Interface Guidelines
If you need to keep the images this small, one workaround would be to increase the size (frame) of the button and keep the image (the image must be set as a button image, not background image). This way you'd have a bigger zone that will accept input and still use the same image.
Ask your designer to make the image bigger, by using a transparent space around it.. 20x20 is too small to touch.. Apple says that the avg finger tap is 44x44 (from WWDC). All table rows are recommended to be at least that height. Use a transparent padding to make your image atleast 44 * 44.
Ok I have 6 custom UIButtons. Their normal state image are all circles images.
They are all spaced out equally but all the circles touch each other.
The problem with the custom UIbutton (which has a circle image on it), is that the hit area of that button is square, and the corners of this square overlaps the hitarea of the other custom button's hitarea.
How do i make the hit area of a UIbutton whos normal state has a circle image, be only clickable on that circle only, rather than the normal square hit area?!
I hope that someone can find a way for me to solve this problem that i currently am having!
Thanks in advance
Pavan
If the square area of a "circle" is clicked on, you should then check if the distance between the center of the circle and the coordinates of the click are less than the radius of the circle. If not, then the "hit" can be ignored.
Thanks for the input demi, I just basically put hidden buttons on top of the images. They weren't really circles, they were more complex shapes; hence the reason I didn't bother about the maths, so I just placed hidden buttons on top of the images themselves and make those hit areas and cover appropriately until I get the desired hit area coverage I need.
Although not very neat, it works well! :D
Thanks once again for the swift reply demi.
OBShapedButton is an awesome project that will give you a button that will only respond to taps that are in the images area. I've messed with a few projects that say they do the same thing, and this one is the best I've seen so far.