Here is the content of the StackOverflow. Video Tutorial Mouse, Zoom, and Pan Features Delivery:application/+json Embed Size:391×220 2.625x Separate AV:true Dropped. Var renderer = new ZoomPanRenderer("drawing") Īs you can see, I am using Jquery and the jquery mouse wheel plugin from Brandon Aaron, which can be found here: The problem must be somewhere in the function, in the calculation of the translation on the x axis and y axis. Base class for all mouse manipulators (see MouseRotate, MouseZoom and MouseTranslate for examples of how to extend this base class). When it comes to zooming, I am struggling to figure out where the glitch is in my Javascript code. Panning is out of the scope of my question, since I have it working already. and re-enabled it the X-Camera menu was showing up twice in the plugin menu Fixed issues with not finding all the airports in the loaded scenery Fixed bugs with transitions with free cameras where the cameras were not getting their X,Y,Z coordinates updated from the camera’s latitude and longitude after an X-Plane restart. The only, yet mandatory, constraint is that I cannot use anything else than CSS3 translate & scale transformations, with a transform origin of 0px 0px. When scrolling, I wish to have a zoom operation centered on the mouse cursor.įor this, I use on-the-fly CSS3 matrix transformations. My goal is to create a plugin that enables zooming & panning operations on a page area, just like how Google Maps currently works (meaning: scrolling with the mouse = zooming in/out of the area, click & hold & move & release = panning).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |