Questions tagged [snapping]
65 questions
1
vote
1 answer
Google Maps API v3 Road Snapping - How to improve accuracy with limited waypoint data
I've got an app which is receiving limited waypoint data and although the Google Maps Road Snapping does an admirable job of guessing the correct roads based on that data, I'm still experiencing a level of inaccuracy that won't work for our app.
In…

George Inggs
- 250
- 2
- 9
1
vote
0 answers
Snapping Horizontal Scrollbar (different item widths)
I looked through many different posts, but I haven't found any working solution.
There are many solutions for snapping horizontal scrollbars, but every one of them works only, if the items have the same sizes.
I will give you a small example:
The…

Grafelhaft
- 25
- 1
- 4
1
vote
1 answer
WPF: drawing own cursor - nontrivial problem
i need to implement a cursor with some very specific features:
it has to be animated
because after n seconds it automatically clicks - so the animation is feedback for the user when the click will happen
it has to snap to some of our controls
it…

santa
- 983
- 9
- 30
1
vote
0 answers
Android RecyclerView snapping to wrong position
I have a horizontal layout manager and RecylerView. From that I made a carousel by setting really high itemCount and starting in the middle.
Then to achieve snapping I followed the guide at…

praxus
- 488
- 1
- 7
- 18
1
vote
1 answer
d3 force layout snap to grid on drag
How do you snap to a grid after dragging is finished in d3?
I tried adding an event listener to the dragend event and rounding the values, but it doesn't seem to work:
force.drag()
.on('dragend', function(d) {
d.fixed = false;
…

Petah
- 45,477
- 28
- 157
- 213
1
vote
3 answers
Control snapping on resize in C# scrollable container
I have a set of controls which I am stacking vertically inside a scrollable control.
Each control contains text (like message bubbles on an iPhone), which the bubble resizes based on the height of the text.
The problem I face, is when I resize the…

Kraang Prime
- 9,981
- 10
- 58
- 124
1
vote
1 answer
Simulate swipe gesture with mouse and snap focused Windows
Scenario :
Select an opened Window, swipe the Window with mouse to either left or right direction for snapping.
Example : User swipe Notepad to left, the Notepad window will snap at left side.
Using : WPF , C#, VS2013
Problem :
1) How can I check…

Xeon
- 246
- 3
- 15
1
vote
1 answer
Android: Snapping effect with gallery of images
In one part of my app, I'm trying to make a gallery of photos that you can browser through. I want to have a snapping effect similar to the Gallery class. I want it to have a snapping effect every time you swipe from one image to the next in the…

Rob Avery IV
- 3,562
- 10
- 48
- 72
1
vote
1 answer
Tweetbot for Mac like snapping windows
I am trying to reproduce the windows snapping/merge functionnality of the last Tweetbot for Mac.
If you have 2 windows and you bring one close to the other, they snap and are merge in a single window.
Do you know how I can do this?
Thanks

AP.
- 5,205
- 7
- 50
- 94
1
vote
1 answer
Snapping a line to a specified distance
I'm drawing a ton of lines and points onto a JavaScript canvas. When the user clicks, it adds a point, and a preview with a connection to the next point.
Example image:
In this image the user has clicked three times, creating the three dark green…

Timothy Miller
- 2,391
- 1
- 27
- 34
0
votes
0 answers
Snapping feature in osmdroid when drawing a Polygon
In ArcGis we have snapping feature thats allow us to connect new drawing item to another overlay on map. here is detail of this feature.
ArcGIS snapping feature
but in osmdroid how can i use this structure?
i find this document of osmdroid. but i…

javadroid
- 1,421
- 2
- 19
- 43
0
votes
0 answers
Snapping Layers are not loaded in Editor Widget In ArcGIS JS 4.24
I am using version ArcGIS API JavaScript 4.24.
1- I am using MapImageLayer and FeatureLayer layers in my project at the same time.
When I set the ListMode value to 'hide', layers are not loaded in SnappingLayer.
I don't want layers to be displayed…

Mohammad
- 1
0
votes
0 answers
Why isn't smooth snap scrolling working with my nav links?
Smooth snap scrolling works in every regard except when the nav links are used. Btw enabling smooth scrolling in Chrome didn't help and it's not working in other browsers anyway so there's something I'm not getting.
Here's my Codepen in case you…

Chaz Sutherland
- 49
- 6
0
votes
1 answer
Retrieve coordinates from snapped points in Forge viewer
I want to snapp points in the model and retrieve their coordinates. I found the below code in Forge blog
this.points = [];
const result = this.snapper.getSnapResult();
const { SnapType } = Autodesk.Viewing.MeasureCommon;
…

salimBekandi
- 11
- 2
0
votes
0 answers
How to implement snapping effect and collision detection between two objects using Threejs?
We are able to detect the collision but could not implement a snapping/magnetic effect like Snap edges of objects to each other and prevent overlap
we need help with 3D objects here and we are using Vec3 for the active object's position.
With the…

Rashid Siddique
- 72
- 10