Skip to content

Commit

Permalink
chore(search-pad): do not set zoom to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Sep 23, 2024
1 parent e46d4d0 commit dc5d5a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions lib/features/search-pad/SearchPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,6 @@ SearchPad.prototype._preselect = function(node) {

domClasses(node).add(SearchPad.RESULT_SELECTED_CLASS);

this._canvas.zoom(1);

this._canvas.scrollToElement(element, {
top: 300
});
Expand Down
15 changes: 0 additions & 15 deletions test/spec/features/search-pad/SearchPadSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,21 +442,6 @@ describe('features/searchPad', function() {
}));


it('select set zoom level to 1', inject(function(canvas) {

// given
canvas.zoom(0.4);

typeText(input_node, 'one');

// when
triggerKeyEvent(input_node, 'keyup', 'Enter');

// then
expect(canvas.zoom()).to.equal(1);
}));


it('select reset viewbox on escape without enter', inject(function(canvas) {

// given
Expand Down

0 comments on commit dc5d5a8

Please sign in to comment.