Title: Change in collision algorithm · Issue #141 · gridstack/gridstack.js · GitHub
Open Graph Title: Change in collision algorithm · Issue #141 · gridstack/gridstack.js
X Title: Change in collision algorithm · Issue #141 · gridstack/gridstack.js
Description: Hi, The default algorithm works like this: if I start dragging an element on top of its upper element, the two elements gets instantly swapped if I start dragging an element on top of its lower element, the two elements gets swapped only...
Open Graph Description: Hi, The default algorithm works like this: if I start dragging an element on top of its upper element, the two elements gets instantly swapped if I start dragging an element on top of its lower ele...
X Description: Hi, The default algorithm works like this: if I start dragging an element on top of its upper element, the two elements gets instantly swapped if I start dragging an element on top of its lower ele...
Opengraph URL: https://github.com/gridstack/gridstack.js/issues/141
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Change in collision algorithm","articleBody":"Hi,\n\nThe default algorithm works like this:\n- if I start dragging an element on top of its upper element, the two elements gets instantly swapped\n- if I start dragging an element on top of its lower element, the two elements gets swapped only after the dragged element is completely below the second element\n\ni would like to modify it in order to make the two elements swap instantly also in the second situation (so, when the dragged element starts overlapping another element, they should swap)\n\ndo someone know how can I accomplish this, or what I should change in the code?\n","author":{"url":"https://github.com/azza0091","@type":"Person","name":"azza0091"},"datePublished":"2015-05-04T12:43:54Z","url":"https://github.com/gridstack/gridstack.js/issues/141"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d234daee-e57d-b41d-527c-732aef71f639 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8870:1B0A48:BEB857:10456B5:6AFF1042 |
| html-safe-nonce | ab86720bea9ed9e09abd81c233be25f0e19c90dbf546e571c9cbe7d1044f6431 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODcwOjFCMEE0ODpCRUI4NTc6MTA0NTZCNTo2QUZGMTA0MiIsInZpc2l0b3JfaWQiOiIzNzYzODY1ODQ5NzIzNTU1OTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3d6eff6c38d8fea826fec2ba3b31289faf297624654000932950328ccd788c26 |
| hovercard-subject-tag | issue:73011070 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gridstack/gridstack.js/141/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f210538d19df8dd248a5b13eedf6a3f61b9df3774312e938c5bc760b4f0f704a/gridstack/gridstack.js/issues/141 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f210538d19df8dd248a5b13eedf6a3f61b9df3774312e938c5bc760b4f0f704a/gridstack/gridstack.js/issues/141 |
| og:image:alt | Hi, The default algorithm works like this: if I start dragging an element on top of its upper element, the two elements gets instantly swapped if I start dragging an element on top of its lower ele... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | azza0091 |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcfe2a442692c228642cbe77179775d6e0c6ab034e6bc05c1fd074690696a776 |
| turbo-cache-control | no-preview |
| go-import | github.com/gridstack/gridstack.js git https://github.com/gridstack/gridstack.js.git |
| octolytics-dimension-user_id | 31674162 |
| octolytics-dimension-user_login | gridstack |
| octolytics-dimension-repository_id | 26417283 |
| octolytics-dimension-repository_nwo | gridstack/gridstack.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26417283 |
| octolytics-dimension-repository_network_root_nwo | gridstack/gridstack.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7fa20bbf4fd3396dfd52404c5947255a960d6fe2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width