Questions tagged [snapping]
65 questions
2
votes
1 answer
How do I change the colour of the whole object once its trigger has been hit?
I am making a chemistry molecule game. So far I have a molecule with a trigger on a receptor site and when I drag the correct atom close to this site, the atom changes colour and attaches. How do I change the colour of the whole molecule (not just…

Lucy N
- 23
- 3
2
votes
2 answers
Adding gridlines to Excel VBA userforms
Is there a way to add gridlines and snap objects to gridlines in an Excel VBA Userform?
I am generating a UserForm in Excel VBA with numerous textboxes and labels. Aligning them, even with the auto-align and grouping tools is quite tedious and…

Paul NoCal
- 57
- 1
- 1
- 7
2
votes
1 answer
Snapping in horizontal recycler view
I have a horizontal Recycler View and I want to enable snapping in it. I read some of the threads on SO and found this code to be working very well. I don't have much knowledge about the internal workings of Recycler View and Layout Managers so…

Amit Tiwari
- 3,684
- 6
- 33
- 75
2
votes
0 answers
parallax snap to scrollTop()
i'm trying parallaxa site to snap to certain point.
if ($(this).scrollTop() < 6500 && $(this).scrollTop() > 7500 ) {
$(this).scrollTop(7000);
}
But with these code the snapping occures even, when i wanna move out from area.
How to fix this?

user3688987
- 25
- 4
2
votes
2 answers
How to prevent/disable snapped view for Windows 8 Metro UI applications
I have an application that really makes no sense for snapped view, as the content generally represents A4 pages of information and data collection.
Is there a way to disable snapped view for the application, or is the recommended approach to just…

Predominant
- 1,460
- 12
- 24
1
vote
3 answers
HorizontalScrollView with snapping effect
Is it possible to make HorizontalScrollView with snapping effects for each view inside it?
(Not gallery)

David
- 37,109
- 32
- 120
- 141
1
vote
0 answers
How to know when a WPF Window has snapped/unsnapped in Windows?
Im using a WPF Window in the WindowsStyle='none';
With this I create my own custom window by giving the 'root' grid (the highest in the XAML-tree) a Margin of 20px and a DropShadow. The window itself is transparant, the grid has a white…

MiiChiel
- 201
- 1
- 4
- 14
1
vote
1 answer
How to Snap linestyle in Actionscript 3.0?
Hai, i am a newbie to actionscript.
i am trying to make a brush tool in actionscript 3, where kids can paint colors inside a circle using the brush. i have achieved this using linestyle. Now i want the brush to snap the color when the kid is about…

Charlz
- 11
- 1
1
vote
1 answer
jquery drag and drop
I want to know how to clone and append an element to the droppable area with the following code:
$(function() {
$(".draggable").draggable();
$(".item").droppable({
drop: function(event, ui) {
var $this = $(this);
…

kiran
- 11
- 1
1
vote
0 answers
Snapping a point on the raster based on condition
I have a raster and some points. I want to snap the points closest to the raster based on some general conditions.
library(raster)
##create a diagonal matrix
xy = diag(1, 100, 100)
# Turn the matrix into a raster
rast <- raster(xy)
# Give it…

user3978632
- 283
- 4
- 17
1
vote
3 answers
Using Javascript getBoundingClientRect to Snap Items to Grid
EDIT: I've simplified the code (below and in fiddle) down to the major problem needed to be solved in hope of creating more readability.
I've implemented Bader's solution for correctly using getBoundingClientRect value and using…

Brendan
- 125
- 2
- 14
1
vote
1 answer
How to get soon-to-be-selected page while settling snapping feature on RecyclerView and ViewPager
Background
ViewPager snaps to a view after you perform some scrolling, and so can RecyclerView, if you use something like this:
LinearSnapHelper().attachToRecyclerView(recyclerView)
Or by using a library to snap to a certain edge, as shown on this…

android developer
- 114,585
- 152
- 739
- 1,270
1
vote
1 answer
Snap PictureBox to Buttons after Drag and Drop
I'm making a Battleship game, and I'm using buttons as the grid(playerboard). I'm using a picture box as the ship, and I'm trying to make it so that the picturebox snaps to the buttons that it is colliding with.
I have already done the drag and…

Erika
- 13
- 3
1
vote
2 answers
Snapping RecyclerView android
I am trying to implement a snapping mechanism for my horizontal recyclerView and i am using this code to do it.
But there seems to be some space between all my child items. Please see screenshot below (I'm not allowed to embed images yet, so please…

user6137836
- 51
- 6
1
vote
1 answer
Control Panel Settings from Command Line
I'm looking for a way to make a Registry Change take affect right away.
Specifically the value I want to touch is:
HKEY_CURRENT_USER/Control\ Panel/Desktop/WindowArrangementActive
When you change this setting directly from the Control Panel it takes…

Emil L.
- 97
- 10