@@ -237,12 +237,12 @@ FocusScope {
237237 }
238238
239239 function updateDelegateCreationRange() {
240− if (moving) {
240+ if (categoryView.moving) {
241241 // Do not update the range if we are overshooting up or down, since we'll come back
242242 // to the stable position and delete/create items without any reason
243243 if (categoryView.contentY < categoryView.originY) {
244244 return;
245− } else if (categoryView.originY + categoryView.contentHeight > categoryView.height &&
245+ } else if (categoryView.contentHeight - categoryView.originY > categoryView.height &&
246246 categoryView.contentY + categoryView.height > categoryView.contentHeight) {
247247 return;
248248 }