OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
682 stars 95 forks source link

Mouse scrolling in PowerPoint content add-in not working anymore #2662

Open derpylz opened 2 years ago

derpylz commented 2 years ago

Hello!

I’m the author of the babyplots library, a plotting library for interactive 3D plots using the babylonjs render engine. I’ve also created a PowerPoint content add-in to go along with it, where you can embed interactive plots (meaning the user can rotate the plot and zoom in and out) in a slide. This was working really nicely until a recent PowerPoint update apparently made it impossible to scroll in content add-ins. Scrolling now only moves to the next/previous slide, instead of scrolling in the add-in.

I have first noticed this new behaviour in my add-in. However, I believe that this behaviour appears in any content add-in that depends on mouse scrolling. A quick check on the add-in marketplace showed that for example the official Microsoft Forms add-in shows the same behaviour in PowerPoint on desktop. When adding a long form that requires scrolling, it is not possible to scroll the form with the mouse wheel.

Your Environment

Expected behavior

The previous behaviour was that if the user clicked on the add-in, the add-in was focused and scroll events would register in the add-in. This worked while editing the PowerPoint slide, as well as when the PowerPoint presentation was active. This is still the current behaviour in PowerPoint in a web browser.

Current behavior

The current behaviour in the standalone PowerPoint app on desktop is that even if the user clicked the add-in, scrolling goes to the next slide. Mouse click and mouse drag and keyboard events are still passed to the add-in, but scroll events aren't.

Steps to reproduce

You can reproduce this in my add-in, by

  1. getting the add-in from the store (it's free and requires no login for verifying this behaviour)
  2. adding the add-in to a slide and clicking on one of the example plots (examples -> select example).
  3. You can click and drag to move the camera around the plot, scrolling with the mouse should zoom in and out, but currently does nothing/switches to the next or previous slide in the presentation.

Link to live example(s)

I have created a sample PowerPoint Presentation where I've already added my add-in as described in the above steps. Here's the shared link: https://1drv.ms/p/s!AkxxMhqOM7Hit-cLKHHP3ZVvxl0ZJA?e=PdThhf

Here is another PowerPoint Presentation with the Microsoft Forms add-in that shows the same behaviour: https://1drv.ms/p/s!AkxxMhqOM7Hit-cNaamM_2r1696bFQ?e=iR5ueH

To compare previous and current behaviour, you can open the above linked presentation in PowerPoint on the web (still has previous behaviour) and in PowerPoint on desktop (current/broken behaviour).

Context

Mouse scrolling is essential for the functionality of my add-in, as it allows to zoom in and out of plots and visualizations interactively. My question is, if there is a way to restore the previous behaviour? If not, are there any workarounds?

Thank you in advance!

alison-mk commented 2 years ago

Hi @derpylz, thank you for submitting this issue! I've assigned it to the @LuyiH who will be able to provide you with more information or help resolve the issue.

Cheers, Alison

derpylz commented 2 years ago

Any news on this? Thanks!

bisonfoutu commented 1 year ago

Hey there, I'm a developer at Wooclap, we also provide a content add-in for PowerPoint and have been experiencing the same scrolling issue on the Windows version of PowerPoint since May 2021.

We're still able to reproduce it with the latest Office 365 version of PowerPoint on Windows 11 both on our own add-in and on others.

Our users can still scroll inside our app by dragging scrollbars but it really creates a poor overall UX and it's difficult for us to tell our users that we can't do anything about this issue.

@alison-mk @LuyiH have you been able to make any progress on this matter ?

alison-mk commented 1 year ago

@yaweizhu-henson Could you take a look at this PowerPoint bug?

derpylz commented 1 year ago

Thank you, @bisonfoutu, for bringing attention to this issue again! It would be great, if it could be solved.

I can confirm that this issue applies to all content add-ins in PowerPoint on Windows. Even Microsoft's own add-ins, such as Microsoft Forms.

yaweizhu-henson commented 1 year ago

@alison-mk I will invite @wangyun-microsoft to see the problem of PowerPoint, he is the right POC of PowerPoint add-in.

derpylz commented 1 year ago

@alison-mk, @wangyun-microsoft, sorry for the harsh words, but this is getting quite frustrating. I reported this issue almost a year ago now, it affects not only users of my add-in, but also those of other add-ins such as Wooclap and even of those provided by microsoft. There has been no communication from your side, just passing around of the issue between people.

Could we at least get some information on if the issue is being investigated and if a fix might be possible?

alison-mk commented 1 year ago

Hi @derpylz, I apologize for the delay. I've followed up internally with the team who can help resolve this bug.

wangyun-microsoft commented 1 year ago

@derpylz, thanks for bringing this issue back again. We are working on prioritizing works for ppt right now. I will update this entry when we have a conclusion whether to fix this one. Thanks.

bisonfoutu commented 1 year ago

Hello @alison-mk @wangyun-microsoft , it's been 5 months and we haven't heard back from you, I expect this priorization work to be done now ?

I am honestly very surprised that fixing this issue is not more of a priority for Microsoft as it makes Office add-ins mostly unusable for Windows users, which probably represent most of your user base.

Luckily for us, we don't have too much scrolling in our UI for PowerPoint, but the parts where we do are completely broken for most of our users and this is clearly not the experience we want to offer them. Sadly, there doesn't seem to be any alternative so we're stuck with a faulty software until you actually do something about it.

janliechti commented 9 months ago

Are there any news? can't believe that microsoft isn't able to solve this annoying problem.

wangyun-microsoft commented 7 months ago

Adding @EsterBergen.

@EsterBergen, can you please take a look at this issue?

Vishal1419 commented 1 month ago

I am also facing the same issue. Commenting here for subscribing to this thread and to draw Microsoft team's attention to prioritize this issue.

bisonfoutu commented 1 month ago

On a more positive side, I can at least say that I don't have any scrolling problem with this setup:

Since it seems that MS hasn't allocated a lot of resource to this issue, I guess the best we can do is provide more information about the faulty setups.

@derpylz @janliechti are you still facing scrolling issues ?

@Vishal1419 what is your setup ?