Closed
Bug 1013396
Opened 11 years ago
Closed 11 years ago
$anchorScroll sometimes fails on competency pages
Categories
(Webmaker Graveyard :: webmaker.org, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kate, Assigned: kate)
References
Details
(Whiteboard: [resources][2014Q2][June13])
Attachments
(1 file)
When clicking sections under the 'jump to' sticky sidebar, sometimes it does not jump to the correct location; clicking it a second time usually fixes this.
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → kate
Whiteboard: [textbook] [soft-launch] → [resources][2014Q2][May30]
Updated•11 years ago
|
Status: NEW → ASSIGNED
Comment 2•11 years ago
|
||
I've taken apart and re-assembled this script, still don't know why it's doing what it's doing, but at least at this point I can say what it IS doing.
By clicking on any of the three fixed ToC items on any competency view:
- Click #1 MakeAPI-Client(makeapi.js) sends a request to the Make API; some script somewhere jumps window.scrollTop to… somewhere. The somewhere is predictable based on your window.height, but I haven't really figured out any rhyme or reason for it.
- Click #2 executes the desired $location.hash(id); $anchorScroll() as long as you haven't scrolled away from wherever click #1 landed you.
It does the same thing whether the function to scroll is inside its own directive, or in the controller as a function on scope called with ng-click.
I literally have no idea why this is happening.
Comment 3•11 years ago
|
||
Aki I've removed this from this sprint. Can we just take this functionality out for now and address it next sprint?
Flags: needinfo?(aki)
Whiteboard: [resources][2014Q2][May30] → [resources][2014Q2][June13]
Comment 4•11 years ago
|
||
Okay I created Bug #1018281 to remove it, and we'll leave this open to re-add it as soon as we can.
Updated•11 years ago
|
Flags: needinfo?(aki)
Updated•11 years ago
|
Assignee: aki → nobody
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → kate
Comment 5•11 years ago
|
||
Kate since we are launching resources to prod this week, can you take a look?
| Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8432806 -
Flags: review?(ali)
Updated•11 years ago
|
Attachment #8432806 -
Flags: review?(ali) → review+
Comment 7•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/webmaker.org
https://github.com/mozilla/webmaker.org/commit/7a6b74310d8881d8fa3a630fbaf78ebd7cd05ff2
Bug 1013396 - $anchorScroll sometimes fails on competency pages, remove makeapi that isn't being used.
| Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•