I am using Cube 3D react and I put some links in the cubes with links ,the problem that I have is when I scroll through different sides of the box if my mouse is still on the square while I end the scrolling it is clicked and the link redirects me ,I want if its possible while I scroll even if I end scrolling and my cursor is still on the side I started to scroll not to be clicked.
Related
I am trying to animate my page so that when the settings icon(in the top right) is clicked, the settings page will expand from the top right as a circle over the current main page.Example settings page
Also when you click on the corner of the mainpage I want to close the circle.
Does anyone have any idea of how I could do this?
I found a solution to my question here: Popout frame
I created a frame with a corner radius such that the frame was a circle shape then I used a scale animation to make it pop in and out.
I am currently trying to make a map like canvas with buttons inside using SkiaSharp and Xamarin.Forms.
but when it comes to zoom / pan i can't sync this 2 up because when
a) im using a control with zoom / pan actions and canvas + buttons as childs with inverse scale, that mostly works but the skiasharp canvas will be blurry because it's only an element transform (bitmap scaling)
b) the buttons don't stay at the desired location when using the direct skiasharp canvas transform and a seperate content container for the buttons because (bad) transform syncing
any idea on how to combine this 2 components to a map with button markers like element?
My suggestion would be to use AbsoluteLayouts to stack Xamarin.Forms buttons (or Images with GestureRecognizers) over the top of a drawn SKCanvas. Each time a button is clicked you then have to eventually call InvalidateSurface() on the SKCanvas and it will redraw with the parameters that were changed by the clicking of the button. I'm doing this a lot in an app of mine and am very happy with it, you can see it over here.
I am trying to create a small container where the user will be able to move the mouse/drag his finger in order to control the renderer DOM element, in another container. The problem is that TrackballControls.js, a controller script included with THREE.js, maps the controls to event.clientX and event.clientY, so when I drag with in the small container I created, I don't see the desired effect. I was wondering what a proper way to map the input from a small area and effect the renderer element as if the user had the entire rendering area to give input?
The reason I need to do this is because I am integrating a CSS3D view into a normal, 2D page, and the mobile experience is awful if I do not disable to touch controls on TrackballControls.js- the user will be scrolling down the page as normal, and when he hits the 3D div, the 3D controls take over and the user can no longer scroll out of that area back to the rest of the page content. So I need a little small area where the user can spin, zoom, and pan my 3D visualization but then be able to scroll on the rest of it to escape.
Thanks!
Here is what exactly I am trying to do.
I have an image with square elements inside it. When i click on top left and bottom right corners of those elements they are surrounded with divs with border. I then have functions to drag and resize those divs(once they are created by two clicks). I want to be able to record the resized coordinates of those divs in text boxes. For example if the image is with height=700 and width=500. Then if i create a square div inside it with coordinates top left(x=190,y=150) and bottom right(x=290,y=250). Then if i drag this div around the image i want those coordinates to change accordingly. Same thing to happen if i resize it.
Here i have added the code in a web site. laughter.free.bg/imagemapping/Img1.html What you need to do is click on top left and bottom right corners of one of the snack packs. Then you`ll see a box on the right with the coordinates of this Green bordered div. I want those coordinates to change when i drag or resize this div. You can see the code in the source of the page.
Thanks a lot in advance.
It is possible to bind functions to the resize event through jQuery.
For example, ur kiroid has a class of ui-resizable. You could use something like:
$('.ui-resizable').resize(function() {
// refresh your coords here from $('kiroid').css maby?
})
I have Image and I am zooming this image as well Draging this image and move around this canvas,
so the canvas is inside the Pivot Control and once I am trying to move from Left to Right so it will goes to the next Pivot Item so I want to stop this horizontal scrollbar into this PivotItem.?
NOTE:
I had tried with Touch.FrameReported but is not worth in my case.
Thanks..!!
You could try the Lockable Pivot control from the Silverlight Toolkit for Windows Phone :-
http://www.windowsphonegeek.com/articles/Windows-Phone-Toolkit-LockablePivot-in-depth