Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

feat(tabs): refactors tabs to function closer to spec #1944

Closed
wants to merge 1 commit into from

Conversation

robertmesserle
Copy link
Contributor

Closes #1087
Closes #1107
Closes #1140
Closes #1247
Closes #1261
Closes #1380
Closes #1387
Closes #1403
Closes #1443
Closes #1505
Closes #1506
Closes #1516
Closes #1518
Closes #1564
Closes #1570
Closes #1620
Closes #1626
Closes #1698
Closes #1777
Closes #1788
Closes #1850
Closes #1959
Closes #1986

@ajoslin ajoslin added the in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs label Mar 17, 2015
@robertmesserle robertmesserle force-pushed the wip-tabs-rewrite branch 2 times, most recently from a9a20bb to 1b005ff Compare March 19, 2015 21:04
@robertmesserle robertmesserle force-pushed the wip-tabs-rewrite branch 10 times, most recently from 06e27bb to 12a4ba9 Compare March 25, 2015 19:00
angular.module('material.components.tabs')
.directive('mdTabScroll', MdTabScroll);

function MdTabScroll () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add comments why this is needed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no angular directive for mousewheel to my knowledge. I wrote this to be a generic re-usable mousewheel directive. I named it mdTabScroll for now, but it could easily be reused in other components.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation seems weird (creating a new scope every time an event happens etc).
Not ot mention sub-optimal from a performance perspective.

Why not follow the paradigm of the rest of the ngEvent directives ?
(Reference: https://github.com/angular/angular.js/blob/master/src/ng/directive/ngEventDirs.js)

BREAKING CHANGE: Generated HTML structure has changed, so custom styles
will need to be updated to match the new HTML structure.

Closes #1087
Closes #1107
Closes #1140
Closes #1247
Closes #1261
Closes #1380
Closes #1387
Closes #1403
Closes #1443
Closes #1505
Closes #1506
Closes #1516
Closes #1518
Closes #1564
Closes #1570
Closes #1620
Closes #1626
Closes #1698
Closes #1777
Closes #1788
Closes #1850
Closes #1959
Closes #1986
Closes #2020
@ajoslin ajoslin removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs resolution: fixed labels Mar 26, 2015
@marcysutton marcysutton deleted the wip-tabs-rewrite branch April 10, 2015 18:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.