Closed Bug 1013396 Opened 11 years ago Closed 11 years ago

$anchorScroll sometimes fails on competency pages

Categories

(Webmaker Graveyard :: webmaker.org, defect)

x86
macOS
defect
Not set
normal

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: nobody → kate
Whiteboard: [textbook] [soft-launch] → [resources][2014Q2][May30]
Reassigning to Aki since Kate is away this week.
Assignee: kate → aki
Status: NEW → ASSIGNED
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.
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]
Depends on: 1018281
Okay I created Bug #1018281 to remove it, and we'll leave this open to re-add it as soon as we can.
Flags: needinfo?(aki)
Assignee: aki → nobody
Assignee: nobody → kate
Kate since we are launching resources to prod this week, can you take a look?
Attachment #8432806 - Flags: review?(ali) → review+
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.
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.

Attachment

General

Created:
Updated:
Size: