on xenial help sign in
More overshoot check fixes
b1d46d5Albert Astals
qml/Dash/GenericScopeView.qml+9−6
@@ -237,12 +237,15 @@ FocusScope {
237 }
237 }
238
238
239 function updateDelegateCreationRange() {
239 function updateDelegateCreationRange() {
240+ if (moving) {
240− // Do not update the range if we are overshooting up or down, since we'll come back
241+ // Do not update the range if we are overshooting up or down, since we'll come back
241− // to the stable position and delete/create items without any reason
242+ // to the stable position and delete/create items without any reason
242− if (categoryView.contentY < categoryView.originY) {
243+ if (categoryView.contentY < categoryView.originY) {
243− return;
244+ return;
245+ } else if (categoryView.originY + categoryView.contentHeight > categoryView.height &&
244− } else if (categoryView.contentHeight > categoryView.height && categoryView.contentY + categoryView.height > categoryView.contentHeight) {
246+ categoryView.contentY + categoryView.height > categoryView.contentHeight) {
245− return;
247+ return;
248+ }
246 }
249 }
247
250
248 if (item && item.hasOwnProperty("delegateCreationBegin")) {
251 if (item && item.hasOwnProperty("delegateCreationBegin")) {