I found this bug when playing Minecraft in Survival mode. The error lies in the fact that when you enter the inventory, select a block or thing that you need and hold down the mouse wheel and then move this block or thing over the empty inventory icons, they appear as 64 pieces.
Thank you for your report!
We're tracking this issue in MC-46584, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 📖 Game Wiki