Skip to content

Commit

Permalink
removing older debug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon committed May 21, 2018
1 parent 23f50d5 commit c46f68b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/state/auto-scroller/fluid-scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ export default ({
});

if (requiredWindowScroll && canScrollWindow(viewport, requiredWindowScroll)) {
console.log('required window scroll', requiredWindowScroll);
scheduleWindowScroll(requiredWindowScroll);
return;
}
Expand Down
3 changes: 0 additions & 3 deletions src/state/move-to-next-index/in-home-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ export default ({
viewport: viewport.frame,
});

console.log('new page center', newPageBorderBoxCenter, 'is visible in frame', viewport.frame, isVisibleInNewLocation);


const displaced: Displacement[] = (() => {
if (isMovingTowardStart) {
return withFirstRemoved({
Expand Down
2 changes: 0 additions & 2 deletions src/state/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,6 @@ export default (state: State = idle, action: Action): State => {

const viewport: Viewport = scrollViewport(state.viewport, newScroll);

console.log('MOVE_BY_WINDOW_SCROLL: updating viewport to', viewport.frame);

return moveWithPositionUpdates({
state,
clientSelection: state.current.client.selection,
Expand Down
1 change: 0 additions & 1 deletion src/view/draggable/draggable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ export default class Draggable extends Component<Props> {

onWindowScroll = () => {
this.throwIfCannotDrag();
console.log('window scroll is now', getWindowScroll())
this.props.moveByWindowScroll({ scroll: getWindowScroll() });
}

Expand Down
3 changes: 0 additions & 3 deletions src/view/window/scroll-window.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// @flow
import { type Position } from 'css-box-model';
import { subtract } from '../../state/position';
import getWindowScroll from './get-window-scroll';

// Not guarenteed to scroll by the entire amount
export default (change: Position): void => {
console.warn('scrolling window by', change);
window.scrollBy(change.x, change.y);
};

0 comments on commit c46f68b

Please sign in to comment.