1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-26 22:48:19 +01:00
phorge-phorge/webroot/rsrc/js/core
epriestley 9c432545e4 Implement macros as audio sources
Summary:
Fixes T3887. Basically:

  - Macros with audio get passed to the `audio-source` behavior.
  - This keeps track of where they are relative to the viewport as the user scrolls.
    - When the user scrolls a "once" macro into view, and it reaches roughly the middle of the screen, we play the sound.
    - When the user scrolls near a "loop" macro, we start playing the sound at low volume and increase the volume as the user scrolls.

This feels pretty good on both counts.

Test Plan: Tested in Safari, Chrome, and Firefox. FF seems a bit less responsive and doesn't support MP3, but it was fairly nice in Chrome/Safari.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3887

Differential Revision: https://secure.phabricator.com/D7160
2013-09-27 16:02:02 -07:00
..
behavior-active-nav.js
behavior-audio-source.js Implement macros as audio sources 2013-09-27 16:02:02 -07:00
behavior-autofocus.js
behavior-crop.js
behavior-dark-console.js
behavior-device.js
behavior-drag-and-drop-textarea.js
behavior-error-log.js
behavior-fancy-datepicker.js
behavior-file-tree.js
behavior-form.js
behavior-gesture.js
behavior-global-drag-and-drop.js
behavior-history-install.js
behavior-hovercard.js
behavior-keyboard-pager.js
behavior-keyboard-shortcuts.js
behavior-konami.js
behavior-lightbox-attachments.js
behavior-line-linker.js
behavior-more.js
behavior-object-selector.js
behavior-oncopy.js
behavior-phabricator-nav.js
behavior-phabricator-remarkup-assist.js
behavior-refresh-csrf.js
behavior-remarkup-preview.js
behavior-reveal-content.js
behavior-search-typeahead.js
behavior-toggle-class.js
behavior-tokenizer.js
behavior-tooltip.js
behavior-watch-anchor.js
behavior-workflow.js
Busy.js
DragAndDropFileUpload.js
DraggableList.js
DropdownMenu.js
DropdownMenuItem.js
FileUpload.js
Hovercard.js
KeyboardShortcut.js
KeyboardShortcutManager.js
MultirowRowManager.js
Notification.js
phtize.js
Prefab.js
ShapedRequest.js
TextAreaUtils.js
ToolTip.js